Skip to content

mativillagra/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible

ansible 1.7.2

ansible windows -i host -m win_ping

ansible winhost.example.com -m setup

ansible-playbook -i /home/matiasvx/ansible_test/host msi.yml

http://docs.ansible.com/win_copy_module.html

################################################################################

SETUP

  1. matiasvx@debian:~$ cp ~/.ssh/id_rsa.pub /home/matiasvx/ansible_test/files/debian.pub

  2. ansible-playbook -i ../linux key.yml --ask-pass

key.yml


  • hosts: linux sudo : yes tasks:

     - authorized_key: user=perinola key="{{ lookup('file', "../files/debian.pub") }}
    
  1. This will should not ask you for a password : ansible-playbook -i ../linux copy.yml

  2. Another example : ansible -i linux st-per-ml2-vl23.asdc.lab -m shell -a "uptime"

  3. cd /home/matiasvx/ansible_test/playbooks && /usr/bin/ansible-playbook -i ../linux mar.yml --extra-vars target=${option.command} Rundeck Job

Fuente: http://thornelabs.net/2014/03/08/install-ansible-create-your-inventory-file-and-run-an-ansible-playbook-and-some-ansible-commands.html

####################################################################################################################3

HOST laptop :

  1. ansible-playbook -i hosts site.yml --ask-sudo-pass

  2. ansible-playbook -i hosts site.yml --list-tasks

  3. ansible-playbook -i hosts site.yml -t simple

https://github.com/ansible/ansible-examples/tree/master/lamp_simple

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published