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

17 lines
474 B
SYSTEMD
Raw Normal View History

2020-10-17 01:00:06 -05:00
# vim:ft=dosini:
[Unit]
Description=Ansible pull service
StartLimitIntervalSec=3600
StartLimitBurst=5
[Service]
User=ansible
Group=ansible
Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/ansible-pull.cfg
ExecStart=ansible-pull --accept-host-key -U "{{ ansible_pull_repo }}" -C "{{ ansible_pull_commit }}" -d "~/ansible-pull-repo" --vault-password-file "~/ansiblevaultpass" "{{ ansible_pull_playbook }}"
2020-10-17 01:00:06 -05:00
Restart=on-failure
RestartSec=90
[Install]
WantedBy=multi-user.target