diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-09-17 11:42:03 +0100 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-09-17 11:42:03 +0100 |
commit | 0f4f5d119c0deeee4806d33d688e735496a0e7ab (patch) | |
tree | e8027168300e135534d32ac7ce365a8d4a938a54 /distbuild/usr/lib/systemd/system/distbuild-setup.service | |
parent | 0f11a6cbe1f4a70279c06ecdacaea942db36c209 (diff) | |
parent | 950017e5621bf5eac6ea13e9340194a6559b2bb1 (diff) | |
download | definitions-0f4f5d119c0deeee4806d33d688e735496a0e7ab.tar.gz |
Merge branch 'baserock/pedroalvarez/generic-mason3'
Reviewed-by: Richard Maw
Reviewed-by: Sam Thursfield
Diffstat (limited to 'distbuild/usr/lib/systemd/system/distbuild-setup.service')
-rw-r--r-- | distbuild/usr/lib/systemd/system/distbuild-setup.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/distbuild/usr/lib/systemd/system/distbuild-setup.service b/distbuild/usr/lib/systemd/system/distbuild-setup.service new file mode 100644 index 00000000..ec5f5a2d --- /dev/null +++ b/distbuild/usr/lib/systemd/system/distbuild-setup.service @@ -0,0 +1,16 @@ +[Unit] +Description=Run distbuild-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/distbuild/distbuild.conf + +[Service] +ExecStart=/usr/bin/ansible-playbook -v -i /usr/lib/distbuild-setup/ansible/hosts /usr/lib/distbuild-setup/ansible/distbuild-setup.yml |