Pass the inventory file and the group for Ansible-pull

18 views
Skip to first unread message

Ivan Nunes

unread,
Jan 8, 2016, 6:29:26 PM1/8/16
to Ansible Project
In my inventory I have a group [pdvtid]. As I say to ansible-pull to run from this group?

The name of my inventory is hosts.tid. As I say to ansible-pull to use this inventory file.

I'm running like this:
ansible-pull -d /home/ansible/local -U gituser@Ip_URL:/home/gituser/mirror/ansible.git

My local.yml:
- hosts: pdvtid
  vars_files:
    - secrets.yml
  roles:
    - common
    - pdv
  vars:
     password1: $1$GgJU6FXG$8nSgXwWqxb4EeDjtMSiHn.
     password2: $1$yDsflhLb$rsnDY5Fo5Ln7vmiirdKj.0
     password3: $1$aZ1FEfdd$3jIG0e9GtTzFbkh0DaKb2.

My inventory:
[pdvtid]
pdvtid50 ansible_ssh_host=127.0.0.1
 
[appservers]
csatidam ansible_ssh_host=XXX.ZZ.X.XX
 
[mirrors]
csatidmr ansible_ssh_host=
XXX.ZZ.X.XX

Reply all
Reply to author
Forward
0 new messages