15 lines
587 B
Bash
15 lines
587 B
Bash
|
#!/bin/bash
|
|||
|
|
|||
|
# Creo directory dipendenti
|
|||
|
install -d -o root -g locals /var/lib/{{ ansible_local.domain.domainfull }}/config
|
|||
|
|
|||
|
# Installo il cronjob per ansible-pull
|
|||
|
wget -q http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/crontab -O /etc/cron.d/ansible-pull
|
|||
|
chown root:locals /etc/cron.d/ansible-pull
|
|||
|
chmod 0644 /etc/cron.d/ansible-pull
|
|||
|
|
|||
|
# Installo il logrotate per ansible
|
|||
|
wget -q http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/logrotate -O /etc/logrotate.d/ansible-pull
|
|||
|
chown root:locals /etc/logrotate.d/ansible-pull
|
|||
|
chmod 0644 /etc/logrotate.d/ansible-pull
|