diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-09-09 15:37:07 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-09-17 11:39:19 +0100 |
commit | 48a4b547d84f9469d0bda0ba9a151a8cd195ff5c (patch) | |
tree | 4e09a72eadeddf1f131e22bd1bdb38caa17e33aa /mason/mason-setup.service | |
parent | 34872e2636ed058a414ee7c66634accb754e8840 (diff) | |
download | definitions-48a4b547d84f9469d0bda0ba9a151a8cd195ff5c.tar.gz |
Configure Mason with Ansible
Diffstat (limited to 'mason/mason-setup.service')
-rw-r--r-- | mason/mason-setup.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mason/mason-setup.service b/mason/mason-setup.service new file mode 100644 index 00000000..60403bde --- /dev/null +++ b/mason/mason-setup.service @@ -0,0 +1,16 @@ +[Unit] +Description=Run mason-setup Ansible scripts +Requires=network.target +After=network.target +Requires=opensshd.service +After=opensshd.service + +# If there's a shared /var subvolume, it must be mounted before this +# unit runs. +Requires=local-fs.target +After=local-fs.target + +ConditionPathExists=/etc/mason/mason.conf + +[Service] +ExecStart=/usr/bin/ansible-playbook -v -i /usr/lib/mason-setup/ansible/hosts /usr/lib/mason-setup/ansible/mason-setup.yml |