ansible-inventory Questions
3
Solved
There is a definition of [all:vars] in my ansible inventory file as follows:
[all:vars]
ansible_shell_type=bash
ansible_user=certain_user
ansible_ssh_common_args="-o ConnectionAttempts=10"
I pla...
Barogram asked 13/9, 2017 at 13:9
1
Solved
I am trying to get this to only apply to my dev and hydra servers. I have 2 host files with hosts in them. The dev-all host group is
[dev-all:children]
dev-group1
dev-group2
The hydra group only...
Aulos asked 31/8, 2017 at 21:23
1
Solved
I am using Ansible to create a new EC2 instance and try to install some packages on it. The problem is I am adding a new host to a host group but I can not see that host group in another play. When...
Kropp asked 20/7, 2017 at 0:14
1
Solved
I have a simple ansible role and couple of basic tasks within this role. All tasks are defined as local_action(or delegate_to: localhost). The host defined in the playbook is also localhost.
Now ...
Teressaterete asked 11/7, 2017 at 13:20
1
I am writing automation with this type of Ansible inventory:
[nodes]
<publicIp1> privateIp=<privateIp1>
<publicIp2> privateIp=<privateIp2>
I do this because sometimes hos...
Croom asked 10/7, 2017 at 1:23
1
Solved
With a personal user account (userx) I run the ansible playbook on all my specified hosts. In ansible.cfg the remote user (which can become root) to be used is:
remote_user = ansible
For the rem...
Financial asked 4/7, 2017 at 9:16
1
Solved
I have an inventory file like:
[my_domain]
255.255.255.255
[production:children]
my_domain
[load_balancer:children]
my_domain
[webservers:children]
my_domain
I have a playbook.yml like:
---...
Photochromy asked 14/6, 2017 at 9:58
2
Solved
I am trying to run an Ansible playbook against a server using an account other than the one I am logged on the control machine. I tried to specify an ansible_user in the inventory file according to...
Dozier asked 11/10, 2015 at 4:31
1
Solved
How can I run a playbook only on first host in the group?
I am expecting something like this:
---
- name: playbook that only run on first host in the group
hosts: "{{ groups[group_name] | first ...
Pimiento asked 22/3, 2017 at 4:40
1
Solved
I have a situation where we have 3 tiers of boxes, in each tier we apply different variables settings (like where the cache dir is), but there are a bunch of defaults. I also need to override on a ...
Atonal asked 24/1, 2017 at 0:53
3
Solved
Ansible version: 2.1.0
My ansible hosts file is:
[PM]
xyz.example.com ansible_connection=ssh
[ND]
pqr.example.com ansible_connection=ssh
[CM]
xyz.example.com ansible_connection=ssh
pqr.example....
Phyletic asked 12/7, 2016 at 9:18
3
Solved
What approach would you advise to organize multistage deployment with Ansible in case you have different variables for stages?
The main idea is defining group variables for different stages.
Ther...
Burweed asked 11/9, 2015 at 15:15
2
Solved
I am using the host file as below,
[qa-workstations]
10.39.19.190 ansible_user=test ansible_ssh_pass=test
I am using below command to execute "whoami" command in host
root@Svr:~/ansible# ansibl...
Perpetuity asked 17/12, 2015 at 12:15
2
I am able to define a hash(dict) like below in group_vars/all:
region_subnet_matrix:
site1:
region: "{{ aws_region }}"
subnet: "subnet-xxxxxxx"
zone: "{{aws_region}}a"
site2:
region: "{{ aws...
Popelka asked 24/4, 2015 at 20:19
1
Solved
I have some difficulties to adapt Ansible configuration to my environment.
My testing environment :
PermitRootLogin no
Only one user allowed to connect through SSH (foo, without any privileges)
...
Fertile asked 14/7, 2014 at 18:14
1
Solved
As the subject says. I have some host variables defined in my hosts inventory file. How do I access them in my playbook?
Here is an example. Based on all my research I was expecting foo and bar to...
Bathos asked 19/11, 2013 at 14:53
© 2022 - 2024 — McMap. All rights reserved.