This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
сервис_ansible [2023/03/25 11:46] val [ansible-pull] |
сервис_ansible [2023/03/30 10:06] (current) val [ansible-pull] |
||
---|---|---|---|
Line 670: | Line 670: | ||
apt update | apt update | ||
- | apt install -y git ansible | + | apt install -y git ansible |
echo -e "0 */2 * * * \ | echo -e "0 */2 * * * \ | ||
- | /usr/bin/ansible-pull -s 120 -U http://gate.corp13.un/user1/ansible-pull-gpo.git\n\ | + | /usr/bin/ansible-pull -s 120 -U http://gate.corp13.un/user1/ansible-pull-gpo.git -C $BR 2>&1 | /usr/bin/logger -t ansible-pull\n\ |
- | @reboot sleep 1m; /usr/bin/ansible-pull -U http://gate.corp13.un/user1/ansible-pull-gpo.git" | crontab - | + | @reboot sleep 1m; /usr/bin/ansible-pull -U http://gate.corp13.un/user1/ansible-pull-gpo.git -C $BR 2>&1 | /usr/bin/logger -t ansible-pull" | crontab - |
</code> | </code> | ||