On Thu, 3 Oct 2019 05:48:04 -0700 (PDT)
Mohtashim S wrote:
> - name: Play 4
> hosts: localhost
> tasks:
>- name: "Load Deployment1."
> tags: deploy
> include_vars:
>file: "{{ item }}"
> with_fileglob:
>- "vars/App_*.yaml"
>
> tasks:
>- name:
On Tue, 1 Oct 2019 18:39:54 +0530
Srinivas Naram wrote:
> - debug:
> var: hostvars
>
> shows all the hosts in my inventory file, so I believe my playbook has
> access to all hosts.
> [...]
> I still get following error
> [...]
> failed. The error was: error while evaluating conditional
>
> > > > > *Trial1* :
> > > > > when: {{hostvars['hostname1]['ansible_facts']['distribution']}} ==
> > > > > "CentOS"
> > > >
> > > > Try this one
> > > > when: "hostvars['hostname1']['ansible_facts']['distribution'] ==
> > > > 'CentOS'"
> >
> > On Tue, 1 Oct 2019 12:41:22 +0530
> > Srinivas
> > > *Trial1* :
> > > when: {{hostvars['hostname1]['ansible_facts']['distribution']}} ==
> > > "CentOS"
> >
> > Try this one
> > when: "hostvars['hostname1']['ansible_facts']['distribution'] ==
> > 'CentOS'"
On Tue, 1 Oct 2019 12:41:22 +0530
Srinivas Naram wrote:
> I have tried with your
On Mon, 30 Sep 2019 20:03:25 +0530
Srinivas Naram wrote:
> *Trial1* :
> when: {{hostvars['hostname1]['ansible_facts']['distribution']}} == "CentOS"
Try this one
when: "hostvars['hostname1']['ansible_facts']['distribution'] == 'CentOS'"
--
You received this message because you are
> > usage:
> > > inventory.py [-h] [--sshkey SSHKEY] [--commit
> > > COMMIT] url inventory inventory.py: error: too few arguments
> >
> > Extra variables (-e, --extra-vars) are passed to the play not to the
> > dynamic
> > inventory script. Create a wrapper for inventory.py with the
On Thu, 26 Sep 2019 09:56:26 -0700 (PDT)
Bariou Alarou wrote:
> I'm able to get the list of my hosts from the yml file when running this
> command
> $ /opt/ansible/static/inventory/inventory.py
> https://github.com/adeyeri88/test.git staging.yml
> [...]
> But when I'm trying now to run any
On Wed, 25 Sep 2019 05:58:08 +0200
Dick Visser wrote:
> Your ansible is using python2.
> So either install ansible using python3, or install pyopenssl for python2
> (if that’s possible at all, can’t tell from here).
>
> On Wed, 25 Sep 2019 at 01:23, Antien Ho wrote:
> > environment: windows 10
On Tue, 24 Sep 2019 12:57:35 -0700 (PDT)
Gregory Edigarov wrote:
> hello,
>
> let's look at the following structure:
> var/
> ssh/
>user1
>user2
>user3
>
> hosts/
>host1/
> user1
> user3
>
> host2/
>user2
>user3
>
> under /var/ssh there are public
On Mon, 23 Sep 2019 23:44:58 -0700 (PDT)
Mohtashim S wrote:
> command_result variable has has data like below.
>
> host6,host5\targ3
> host4,host3\targ1
> host1,host2,host5\targ2
> .
> .
>
> I need to loop through each line of command_result. Pick the host list for
> example
On Sat, 21 Sep 2019 20:23:13 -0700 (PDT)
Tanisha Mishra wrote:
> Using the python module
> https://github.com/jialehuo/ansible-dellemc-unity/blob/master/library/dellemc_unity.py
> ,
> [...]
> - name: Updates
> dellemc_unity:
> unity_hostname: "165.114.74.40"
>
On Sat, 21 Sep 2019 13:18:42 +0200
Alfredo De Luca wrote:
> - name: Install docker libs with pip
> pip:
> name: docker
> state: present
> > > *"Unable to find any of pip3 to use. pip needs to be installed."
Find out which pip you'd like to use. For example
$ which pip3
On Fri, 20 Sep 2019 17:53:18 -0700 (PDT)
Marc Singer wrote:
> I'm working to reimplement an existing firewall using the iptables module.
> I'm not seeing a command to create (or make to exist) a chain ...
> I also don't see commands to handle marking. The match option is present,
> but I
On Wed, 18 Sep 2019 23:59:29 -0700 (PDT)
Mohtashim S wrote:
> I do not have python on the target servers.
> Is there a way to get ansible do this task without the need of python ?
No. It is not.
Cheers,
-vlado
--
You received this message because you are subscribed to the Google
On Tue, 17 Sep 2019 19:06:36 -0700 (PDT)
Andrew Meyer wrote:
> I just updated CentOS 7 to the latest and now am getting this any playbook
> I try to run.
>
> [andrew@automation01 installer]$ ansible-playbook -i inventory install.yml -
> vv
> Traceback (most recent call last):
> File
On Tue, 17 Sep 2019 16:11:18 +0200
Vladimir Botka wrote:
> On Tue, 17 Sep 2019 05:29:05 -0700 (PDT)
> Sur Veillor wrote:
>
> > > setfacl "-r" option is not available in Linux. Linux man setfacl says
> > > FWIW, "Solaris Working Group" mig
On Tue, 17 Sep 2019 05:29:05 -0700 (PDT)
Sur Veillor wrote:
> > setfacl "-r" option is not available in Linux. Linux man setfacl says
> > FWIW, "Solaris Working Group" might be interested to learn about it
> > https://github.com/ansible/community/wiki/Solaris
> >
> Indeed, I checked the
On Mon, 16 Sep 2019 14:28:10 -0700 (PDT)
Sur Veillor wrote:
> man of setfacl inform about -r option :
>
> -rRecalculates the permissions for the ACL
> >mask entry. The permissions specified in
> >the ACL mask entry are
On Mon, 16 Sep 2019 14:28:10 -0700 (PDT)
Sur Veillor wrote:
> [...]
> *4 - Ansible executes his scripts with the "become_user" and here comes the
> issue**:*
> [...]
> * (2, b"/usr/bin/python: can't open file
> '/var/tmp/ansible-tmp-1568504245.1231182-74525082315384/AnsiballZ_stat.py':
>
Hi Stephen,
> > > I'm deploying MongoDB to a number of servers using the script below.
> > > Servers are Ubuntu 18.0.4. I have an issue where the installation
> > > fails
> > > to create a mongo folder in /var/run/ and thus can't start the service
> > > (No
> > > place to put the
Hi,
On Mon, 16 Sep 2019 00:59:18 -0700 (PDT)
Stephen Thorpe wrote:
> I'm deploying MongoDB to a number of servers using the script below.
> Servers are Ubuntu 18.0.4. I have an issue where the installation fails
> to create a mongo folder in /var/run/ and thus can't start the service (No
On Sat, 14 Sep 2019 17:27:23 +0200
Vladimir Botka wrote:
> On Sat, 14 Sep 2019 09:05:55 -0500
> Michael Cronenworth wrote:
>
> > On 9/13/19 11:15 PM, Vladimir Botka wrote:
> > > It would be just guessing without complete, minimal, reproducible
> > > exam
On Sat, 14 Sep 2019 09:05:55 -0500
Michael Cronenworth wrote:
> On 9/13/19 11:15 PM, Vladimir Botka wrote:
> > It would be just guessing without complete, minimal, reproducible example.
>
> git clone https://github.com/mooninite/ansible-test
> cd ansible-test
> ansibl
Hi,
On Mon, 9 Sep 2019 09:33:06 -0700 (PDT)
Michael Cronenworth wrote:
> I have a role that when it runs is only partially resolving variables.
>
> Variable_A: defined in defaults - string
> Variable_B: defined in defaults - hostvars reference to Variable_C that
> will be loaded through
On Fri, 13 Sep 2019 01:13:02 -0700 (PDT)
"'Torsten Lorenz' via Ansible Project"
wrote:
> > > the sudo-configuration in our enviroment is pretty strict, so i´m sure,
> > > that we couldn´t work with ansible in this cases. "Sudo su" to become
> > > root isn´t allowed thanks a lot.
> > How are
On Thu, 12 Sep 2019 23:54:30 -0700 (PDT)
"'Torsten Lorenz' via Ansible Project"
wrote:
> the sudo-configuration in our enviroment is pretty strict, so i´m sure,
> that we couldn´t work with ansible in this cases. "Sudo su" to become root
> isn´t allowed.
> thanks a lot
Hi,
FYI, there are
On Thu, 12 Sep 2019 04:47:39 -0700 (PDT)
"'Torsten Lorenz' via Ansible Project"
wrote:
> executing
> "sudo /usr/bin/systemctl start filebeat.service"
> works pretty fine, but i would like to use the service-modul.
>
> My playbook looks like this:
> - name: testplay
> hosts:
On Wed, 11 Sep 2019 14:50:24 -0700 (PDT)
flowerysong wrote:
> That seems overly complex. I would instead wait until the required data is
> available before running set_fact:
>
> - vars:
> che_keycloak_lookup: "{{ lookup('k8s', ...
> [...]
> - debug:
> msg: Waiting for data
On Wed, 11 Sep 2019 18:02:08 +0530
Kamesh Sampath wrote:
> > >> set_fact:
> > >> che_keycloak:
> > >> "{{ lookup('k8s',
> > >> api_version='route.openshift.io/v1',kind='Route',resource_name='keycloak',namespace='che')
> > >>
> > >> }}"
> > >> register: che_keycloak_route_result
> > >>
Fixed syntax.
---
- set_fact:
che_keycloak: "{{ lookup('k8s',
api_version='route.openshift.io/v1',
kind='Route',
resource_name='keycloak',
On Wed, 11 Sep 2019 02:57:51 -0700 (PDT)
Kamesh Sampath wrote:
> > > > > >
> > > > > > until: che_keycloak.spec is defined
> > > > > >
> > > > > > can't find the parameter "spec" because there isn't any.
> > >
> > > the spec becomes available only after few seconds; so I need to keep
On Wed, 11 Sep 2019 15:04:44 +0530
Kamesh Sampath wrote:
> > > > that "set_fact" declares the variable "che_keycloak". The condition
> > > >
> > > > until: che_keycloak.spec is defined
> > > >
> > > > can't find the parameter "spec" because there isn't any.
> > > >
> > > do you mean to
On Wed, 11 Sep 2019 01:44:50 -0700 (PDT)
Kamesh Sampath wrote:
> > Yes. The the fact will be evaluated and set on each iteration. The problem
> > is
> > that "set_fact" declares the variable "che_keycloak". The condition
> >
> > until: che_keycloak.spec is defined
> >
> > can't find
On Wed, 11 Sep 2019 10:39:49 +0200
Vladimir Botka wrote:
> On Wed, 11 Sep 2019 00:22:50 -0700 (PDT)
> Kamesh Sampath wrote:
>
> > I am trying to use `set_fact` with `until` and `retries`, will the fact be
> > evaluated and set during each iteration ? Some
On Wed, 11 Sep 2019 00:22:50 -0700 (PDT)
Kamesh Sampath wrote:
> I am trying to use `set_fact` with `until` and `retries`, will the fact be
> evaluated and set during each iteration ? Sometimes I see the value is not
> being set and I get the failure after the retries. While I see the
>
On Tue, 10 Sep 2019 21:16:04 +0200
Kai Stian Olstad wrote:
> On 10.09.2019 20:14, Vladimir Botka wrote:
> > On Tue, 10 Sep 2019 10:45:45 -0700
> > Guy Knights wrote:
> >
> >> It's possible to define a series of 'and' conditions for a task as follows:
>
On Tue, 10 Sep 2019 10:45:45 -0700
Guy Knights wrote:
> It's possible to define a series of 'and' conditions for a task as follows:
>
> when:
> - foo == true
> - bar == true
>
> As far as I'm aware, the only way to define 'or' conditions is in-line, as
> such:
>
> when: foo ==
Hi,
On Tue, 10 Sep 2019 01:36:41 -0700 (PDT)
Karther wrote:
> [...]
> If i use this condiiton *when: not ansible_check_mode* i don't can verify
> if my task works ... :/
> It's very pity that aspect check mode is not full and strong... :(
The option "--check" can be only as "full and strong"
On Mon, 9 Sep 2019 12:52:37 +0200
Vladimir Botka wrote:
> On Mon, 9 Sep 2019 00:54:32 -0700 (PDT)
> Danny Rehelis wrote:
>
> > > > vars:
> > > >my_hosts:
> > > > - ['host1', 'host2']
> > > >
On Mon, 9 Sep 2019 00:54:32 -0700 (PDT)
Danny Rehelis wrote:
> > > vars:
> > >my_hosts:
> > > - ['host1', 'host2']
> > > - ['host3']
> > > [...]
> > > loop: "{{ my_hosts }}"
> > > [...]
> > > ERROR! Unexpected Exception, this is probably a bug: unhashable type:
> >
> >
On Mon, 9 Sep 2019 00:05:26 -0700 (PDT)
Danny Rehelis wrote:
> vars:
>my_hosts:
> - ['host1', 'host2']
> - ['host3']
> [...]
> loop: "{{ my_hosts }}"
> [...]
> ERROR! Unexpected Exception, this is probably a bug: unhashable type: 'list'
>
> I'm having hard time iterating this
On Thu, 5 Sep 2019 08:28:36 -0700 (PDT)
Jon Adcock wrote:
> Vlado, It's my understanding that the validate step should be done once in
> the playbook. Not for each sshd action in the playbook. Is that what you
> are saying?
Jon, how this might be accomplished? "validate" by design says:
Hi !
> > regexp: "^(#|#\s|\s|)PermitRootLogin\s*(no|yes)"
> Actually \s* is not *one or many*, but *zero or many*. There should be at
> least one space so `\s+`
1) Searching for both commented and non-commented lines is risky. There
might be both present in the file and the result will be
On Fri, 30 Aug 2019 02:41:12 -0700 (PDT)
Mohtashim S wrote:
> The solution given with "my_list" is complaining of the below error:
> >
> > FAILED! => {"msg": "The task includes an option with an undefined
> > variable. The error was: 'dict object' has no attribute 'results'\n\nThe
> > error
On Fri, 30 Aug 2019 01:22:08 -0700 (PDT)
Mohtashim S wrote:
> - name: Play 2
> hosts: remotehost
> tasks:
>- shell: "~/rollback.sh {{ Number }} '{{ InstallDir }}' '{{
> hostvars[\"localhost\"][\"command_result\"].results|map(attribute=/'stdout/')|list
>
> }}' > ~/rollback.log"
>
> I
On Fri, 30 Aug 2019 01:22:08 -0700 (PDT)
Mohtashim S wrote:
> How to pass "stdout" of a variable "command_result" belonging to Ansible
> Play-1 to shell module of a different Play-2?
>
> My playbook looks like below:
>
> - name: Play 1
> hosts: localhost
> tasks:
>- name: "Collect
On Thu, 29 Aug 2019 22:49:54 -0700 (PDT)
Mac Kam wrote:
> HI friends,
>
> When I use raw command in out remote router, then cannot show the output.
> [...]
> -name: Print output
> debug:
> msg: "{{result.stdout}}"
You can show the output. But the output is empty.
On Thu, 29 Aug 2019 10:50:11 -0700 (PDT)
pk s wrote:
> Thanks. It works for localhost.
>
> But let's say i need to save information from a task on all remote hosts in
> a local file (or files), how do i do it? So that in the next yml file, i
> can load the local file for all remote hosts.
On Thu, 29 Aug 2019 19:47:10 +0200
Vladimir Botka wrote:
> - set_fact:
> my_patch_list: "{{ my_patch_list|default([]) + [item] }}"
> loop: "{{ lookup('file','patchlist.txt').splitlines() }}"
Actually this is the same. It doesn't make sens
On Thu, 29 Aug 2019 10:04:55 -0700 (PDT)
Tuyen Nguyen wrote:
> - set_fact:
> my_data: "{{lookup('file','patchlist.txt')|from_yaml}}"
> and then in the whitelist option of win_updates:
> whitelist: "{{my_data}}"
>
> The only caveat is that I need to make my patchlist.txt file to be in
On Tue, 27 Aug 2019 13:32:11 -0700 (PDT)
Nicholas Britton wrote:
> I am building a list with output stored from a uri call:
> [...]
> - name: create list of hostgroups ids
> set_fact:
> hostgroupnum_l: "{{hostgroupnum_l}} +
> ['{{item.hostGroup.hostGroupNumber}}']"
> with_items:
On Wed, 28 Aug 2019 22:00:20 -0700 (PDT)
pk s wrote:
> How do i store/use information retrieved from running a playbook task later
> in another playbook task? I tried dumping the information in json format
> from the first playbook/task to a file. But then how do i read/pass this
> information
On Wed, 28 Aug 2019 08:35:23 -0700 (PDT)
Cade Lambert wrote:
> Ah, ok, I missed that those were backticks. So because we used
> double-quotes to encompass the whole argument, and single-quotes to
> encompass the json_query argument, we cannot use single-quotes again to
> encompass the search
On Wed, 28 Aug 2019 08:04:16 -0700 (PDT)
Cade Lambert wrote:
> Ok, I guess a little background would help.
> [...]
> I tried json_query:
>
> - set_fact:
> host_id: "{{ host_list.json.results|json_query('[?name == 'server2'].id')
> }}"
>
> It threw the following error:
> fatal:
On Wed, 28 Aug 2019 03:34:53 -0700 (PDT)
Alberto Jimenez Lozano wrote:
> I use a proxy to connect to some machines ...
> ... when I execute two playbooks with proxy simultaneously, it appears
> ramdoly error.
> Is there any solution?
FWIW. It might be more efficient to clone the master inside
On Wed, 28 Aug 2019 00:35:19 -0700 (PDT)
Mohtashim S wrote:
> shell: "ls -ltr {{ BASEPATH }}/{{ vars[item.split('.')[1]] }}/{{ item
Be careful. "vars" is a reserved word
https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html#play
Cheers,
-vlado
--
On Tue, 27 Aug 2019 12:44:15 -0700 (PDT)
Cade Lambert wrote:
> [...]
> "output": {
> "json": {
> "results": [
> {
> "name": "item1"
> "id": "26"
> }
> {
> "name":
> - set_fact:
> cisco_ios: "{{ cisco_ios.interfaces|combine(interfaces) }}"
Errata:
- set_fact:
cisco_ios: "{{ cisco_ios|combine({'interfaces': interfaces}) }}"
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
On Tue, 27 Aug 2019 07:44:24 -0700 (PDT)
Spiro Mitsialis wrote:
> I have the following that is not working.
>
> vars:
> cmdb: xkjsdflkjsjdl4d
> cisco_ios:
>interfaces:
> gigabit1/0/1:
> name: Gigabit1/0/1
> status: up
> gigabit1/0/2:
On Mon, 26 Aug 2019 07:05:02 -0700 (PDT)
Emmanuel Lacour wrote:
> is it possible to have some kind of way to write a custom help inside a
> playbook that would be printed once (not for each host) when you issue a
> command like: ansible-playbook playbooks/myplay.yml --help
No. It's not
On Mon, 26 Aug 2019 05:53:03 -0700 (PDT)
Tuyen Nguyen wrote:
> Actually, it didn't quite work :( The task was able to run through but I
> just realized it was not importing the file in correct as a list for the
> whitelist.
Use "from_yaml" filter and take a look what you get
-
Hi!
> > > Set INTERPRETER_PYTHON_FALLBACK and put '/usr/bin/python2.7' into the
> > > first place
> > > https://docs.ansible.com/ansible/latest/reference_appendices/config.html#interpreter-python-fallback
> > >
> > Thank you for help. I am still seeing
> > module file
On Sun, 25 Aug 2019 09:13:22 -0700 (PDT)
Andrew Morgan wrote:
> Thank you for help. I am still seeing
> sing module file /usr/local/lib/python3.7/site-packages/ansible/modules/
> system/setup.p
>
> Maybe I am not setting the variable correctly.In my ansible.cfg I have
>
On Sun, 25 Aug 2019 09:12:57 -0700 (PDT)
Chrono 7 wrote:
> I'd like to know how to conditionally import a playbook.
> [...]
> - name: Car required
> import_playbook: determine_car_information.yaml
> when: car_required == True
It's not possible. "import_playbook" is not a task. Conditions
On Sat, 24 Aug 2019 19:38:22 -0700 (PDT)
Andrew Morgan wrote:
> I have tried below but still the same error
> dev_FE ansible_python_interpreter=/usr/bin/python2.7
> [...]
> Using module file
> /usr/local/lib/python3.7/site-packages/ansible/modules/system/setup.py
Set
Hello!
On Sat, 24 Aug 2019 12:22:28 -0700 (PDT)
Andrew Morgan wrote:
> ansible-playbook 2.8.3
> [...]
> -c '"'"'echo PLATFORM; uname; echo FOUND; command -v
> '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v
>
On Thu, 22 Aug 2019 15:33:21 -0700 (PDT)
Dennis H wrote:
> So it’s confusing between all the rules on these three is there a good
> resource to go over this? Or maybe someone willing to help me this weekend
> figure out when you use quotes when you don’t and when you’re able to use
>
On Thu, 22 Aug 2019 12:26:00 -0700 (PDT)
Mohtashim S wrote:
> - name: "Play 1"
> [...]
>- add_host: name={{ item }}
> groups=dest_nodes
> ansible_user={{ USER }}
> with_items: "{{ Dest_IP.split(',') }}"
> [...]
> - name: "Play 3"
> [...]
>
that ansible play playbook with this both values.
> (there is probabily other values in this file ...)
>
> Help me please community ansible
>
> Regards,
>
> Karther
>
--
Regards,
Vladimir
Vladimir Botka
vbo...@gmail.com
+420.773.041.182
Smeralova 13, Prague 1
Hi!
>>> On Mon, Aug 19, 2019 at 9:38 AM Mike Eggleston
>>> wrote:
>>> What’s happening here? I can reach the server over ssh, but ansible
>>> can’t? I’m testing a provisioning play. I can ssh into the box with “ssh
>>> root@box” but the command “ansible-playbook -vvv -u root -k —limit box
>>>
On Sun, 18 Aug 2019 08:02:33 -0700 (PDT)
Владимир Куликов wrote:
> [root@ansible ~]# ansible -vvv integrity -m ping
> ansible 2.8.2
> ...
> Pipelining is enabled.
> ESTABLISH SSH CONNECTION FOR USER: root
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o
>
On Sun, 18 Aug 2019 14:25:00 +0200
Vladimir Botka wrote:
> On Sun, 18 Aug 2019 04:32:33 -0700 (PDT)
> Владимир Куликов wrote:
> > (HP-UX 11.31 ia64 server with installed Python 2.7.16)
> > I get an error:
> > hpux | UNREACHABLE! => {
> > "changed&qu
Errata:
The problem is "permission failure". You are not able to write to "remote_tmp"
https://docs.ansible.com/ansible/2.4/intro_configuration.html#remote-tmp
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group
Hi!
On Sun, 18 Aug 2019 04:32:33 -0700 (PDT)
Владимир Куликов wrote:
> Hi!
> After tuning connect from master ansible server to target HP-UX server
> (HP-UX 11.31 ia64 server with installed Python 2.7.16) by SSH (ssh HPUX -
> without password), i try a test:
>
> #ssh hp-ux
> (get connected
On Sun, 18 Aug 2019 03:45:20 -0500
Mike Eggleston wrote:
> I am working on a playbook that uses yum. When yum does an update of all
> installed packages I want to do a conditional shutdown -r. What condition
> do I check from the yum task succeeding?
> Mike
1) If you want to reboot on any change
> > > I can't seem to get this syntax correct, and at least one reference I
> > > found
> > > produced more errors. I'd like to create a list of all running
> > > processes.
> > >
> > > - name: populate running services into a list
> > > set_fact:
> > > services_running:
On Mon, 12 Aug 2019 14:57:16 -0500
Amos wrote:
> I can't seem to get this syntax correct, and at least one reference I found
> produced more errors. I'd like to create a list of all running processes.
>
> - name: populate running services into a list
> set_fact:
>
On Wednesday, March 6, 2019 at 5:07:20 PM UTC+1, Doug OLeary wrote:
>
> [...]
> I'd like to loop at the play level rather than the task level.
>
To loop over a set of tasks put the tasks into a file *set-of-tasks.yml *
and use include_tasks
- name: Loop tasks
include_tasks: set-of-tasks.yml
"HostVarsVars" looks suspicious in the error message. Where does it come
from? Find it and check if this is what you want.
'ansible.vars.hostvars.HostVarsVars object' has no attribute
'ansible_default_ipv4'
HTH,
-vlado
--
You received this message because you are subscribed to the Google
>
>
> Running the playbook below with an empty group results in 0 exit code.
What am I missing?
- hosts: test99
pre_tasks:
- debug: var=play_hosts
delegate_to: localhost
HTH,
-vlado
--
You received this message because you are subscribed to the Google Groups
You asked apt to update the cache
update_cache: yes
The cache was updated and the task was flagged "changed".
"cache_update_time": 1540395343,
"cache_updated": true,
"changed": true,
--
You received this message because you are subscribed to the Google Groups
"Ansible
Remove the quotation marks. The conditionals are expanded automatically.
> when: "scrtipt_output.rc !=0"
>
...
> The error was: template error while templating string: unexpected char
> u\"'\" at 29
>
Alternatively you might want to use:
when: not scrtipt_output.failed
--
There is an example in the doc (you posted the link).
webservers:dbservers:
The above configuration means “all machines in the groups ‘webservers’
and ‘dbservers’ are to be managed if they are in the group ‘staging’ also,
...
--
You received this message because you are subscribed to
In response to the question "Works without change?Y/N" the owner of the
contribution might want to know what the changes were.
Thank you!
-vlado
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop
Odd number of the quotation marks caused the error. Fix line 3 in ec2.py
Error parsing host definition ': No closing quotation
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails
>
> Try
>
- debug: var=hc.json.results|json_query('[?name==`hc1`].id')
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
The indentation is wrong (line 10, column 5). Should be:
tasks:
- name: create rxgt-ps-mgmt-direct-connect-gateway stack
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails
Hi Chris,
On Wed, 17 Jan 2018 04:12:13 -0800 (PST)
Chris7444 wrote:
> Well, this is not what I want. I dont want to modify the tasks everytime
> the list of ports changes. I guess the answer is by using some include
> statement (which will include a file containing
601 - 688 of 688 matches
Mail list logo