Browse Source

Scripted an ansible first run.

master
dave 2 years ago
parent
commit
ebe9ad586e
  1. 21
      albert/ansible.cfg

21
albert/ansible.cfg

@ -40,13 +40,24 @@ EODEP
# ansible_host: localhost
#EODEP
cd /var/lib
git clone deploy:/tombstones/ansible.git
## pull down some files
cd /usr/local/sbin
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
chmod 750 *.sh
## --- now clone the repos accordingly...
cd /var/lib/ansible
git clone deploy:/tombstones/10-ansible-common.git
## -- initial run
cd /var/lib/ansible/
ansible-playbook albert-init.yaml >> /var/log/ansible-run.log
#ansible-playbook playbook.yaml >> /var/log/ansible-run.log
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
## .. can use ansible-playbook *.yaml
## also need to cron this...
Loading…
Cancel
Save