Browse Source

No longer needed

master
dave 8 months ago
parent
commit
e3707fef94
  1. 33
      albert/ansible-dave.cfg

33
albert/ansible-dave.cfg

@ -1,33 +0,0 @@
## -- this is all the basic ansible config to ensure it can begin pulling configs down.
cd /usr/local/sbin
## -- seems wget was already installed...
#wget https://config.tombstones.org.uk:23000/tombstones/files/raw/branch/master/usr.local.sbin/synch-from-repos.sh
#wget https://config.tombstones.org.uk:23000/tombstones/files/raw/branch/master/usr.local.sbin/apply-ansible.sh
wget https://config.tombstones.org.uk:23000/tombstones/files/raw/branch/master/usr.local.sbin/update-and-apply-ansible.sh
chmod 750 *.sh
## -- this is where all the self-management stuff will lie
#mkdir /var/lib/ansible
#cd /var/lib/ansible
#git clone deploy:/tombstones/10-ansible-common.git
## -- initial run
## -- seems it needs to be an absolute path
##/usr/local/sbin/apply-ansible.sh >> /var/log/ansible-init.log 2>&1
#ansible-playbook albert-init.yaml >> /var/log/ansible-run.log
##ansible-playbook playbook.yaml >> /var/log/ansible-run.log
## .. but still didn't work. Cronned to run on reboot (as firewallD isn't running)
mkdir -p /var/spool/cron
## .. can use ansible-playbook *.yaml
## also need to cron this...
echo '@reboot * * * * /usr/local/sbin/update-and-apply-ansible.sh albert 2>&1 1>>/var/log/ansible-apply.log ' > /var/spool/cron/root
echo '*/5 * * * * /usr/local/sbin/update-and-apply-ansible.sh albert 2>&1 1>>/var/log/ansible-apply.log ' >> /var/spool/cron/root
## -- just to provide "netstat"
yum -y install net-tools
Loading…
Cancel
Save