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

13 lines
380 B
Desktop File

# vim:ft=dosini:
[Unit]
Description=Ansible pull service
[Service]
User=ansible
Group=ansible
Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/ansible-pull.cfg
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