2015-10-02 02:33:59 +02:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Creo directory dipendenti
|
2015-10-03 16:16:29 +02:00
|
|
|
|
install -d -o root -g users /var/lib/{{ ansible_local.domain.domainfull }}/config
|
2015-10-04 03:16:53 +02:00
|
|
|
|
chown -R root:users /var/lib/{{ ansible_local.domain.domainfull }}
|
2015-10-02 02:33:59 +02:00
|
|
|
|
|
|
|
|
|
# Installo il cronjob per ansible-pull
|
|
|
|
|
wget -q http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/crontab -O /etc/cron.d/ansible-pull
|
2015-10-03 16:16:29 +02:00
|
|
|
|
chown root:root /etc/cron.d/ansible-pull
|
2015-10-02 02:33:59 +02:00
|
|
|
|
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
|
2015-10-03 16:16:29 +02:00
|
|
|
|
chown root:root /etc/logrotate.d/ansible-pull
|
2015-10-02 02:33:59 +02:00
|
|
|
|
chmod 0644 /etc/logrotate.d/ansible-pull
|