27/05/2016


Status




Last updated on 04/04/2019 17:36 by Matthieu Guenebaud
Ansible installation

Install ansible:

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update && sudo apt-get install ansible sshpass
sudo vi /etc/ansible/ansible.cfg

Then replace:

scp_if_ssh = True
library = /etc/ansible/modules
ssh_args = -o ForwardAgent=yes
log_path = /home/guenmat/Bureau/ansible.log

Add the following modules:

sudo mkdir /etc/ansible/modules
cd /etc/ansible/modules && sudo wget https://raw.githubusercontent.com/jistr/ansible-gsetting/master/gsetting.py && sudo mv gsetting.py gsetting
cd /etc/ansible/modules && sudo wget https://raw.github.com/jistr/ansible-dconf/master/dconf.py && sudo mv dconf.py dconf

Then launch the script and enjoy:

cd /data/Projets/ansible/playbook
ansible-playbook asusrogG501.yml -i ./inventories/asusrogG501.inventory -v --user=guenmat --ask-pass --ask-become-pass --become