ansible/roles/ansible-pull/templates/ansible-pull.service

14 lines
393 B
SYSTEMD
Raw Normal View History

# vim:ft=dosini:
[Unit]
Description=Ansible pull service
[Service]
User=ansible
Group=ansible
2020-06-17 09:03:47 -05:00
Type=oneshot
Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/ansible-pull.cfg
2020-06-25 02:16:06 -05:00
ExecStart=/usr/local/bin/ansible-pull --accept-host-key -U "{{ ansible_pull_repo }}" -d "~/ansible-pull-repo" --vault-password-file "~/ansiblevaultpass" "{{ ansible_pull_playbook }}"
[Install]
WantedBy=multi-user.target