[ansible-project] Unable to set parameter

2021-04-27 Thread Dean Verrell
Hello i want to use playbook to config router in towerm but i have error message unable to set parameter. In my router you must go to privilege exec mode and do ssh for remote --- - hosts: '{{ host }}' connection: network_cli gather_facts: false vars: ansible_ssh_user: '{{ ssh_user }}'

[ansible-project] Zypper fails to install multiple dependant RPMs e.g. mysql

2018-11-08 Thread dean warren
Trying to install mysql on SLES 12 SP1 using Ansible 2.7 Following officail mysql documentation as per here: https://dev.mysql.com/doc/refman/8.0/en/linux-installation-rpm.html i.e. using the following command: sudo zypper install mysql-community-{server,client,common,libs}-*

[ansible-project] ansible sudo example in docs fails

2018-10-12 Thread Dean Schulze
I'm new to Ansible and working through the Getting Started in the docs. It shows to use sudo mode just add --sudo flag, but that fails: ansible tv -m ping (works) ansible tv -m ping --sudo (fails with sudo: a password is required) Shouldn't Ansible prompt me for a password for sudo mode?

[ansible-project] Variables in lookup statement for vault

2018-03-05 Thread K S-Dean
"{{ lookup('vault', 'pki/issue/webserver common_name=\"test.example.com\" ip_sans=\"{{ IP_ADDR }}, {{ var=hostvars[inventory_hostname].ansible_ssh_host }}\" format=\"pem\" key_bits=4096').certificate }}" Hi im trying to use a variable inside a lookup statement which I'm using to query vault

[ansible-project] Re: wait_for and with_items hangs

2017-11-15 Thread Dean Kamali
Found it! - name: Wait for service wait_for: path: /tmp/{{ item }}.log search_regex: 'Docker is up and running' timeout: 5 delegate_to: localhost with_items: "{{ groups['manager'] }}" -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Re: wait_for and with_items hangs

2017-11-15 Thread Dean Kamali
: "*groups['manager']*", "msg": "Timeout when waiting for search string Docker is up and running in /tmp/ *groups['manager'].*log"} On Wednesday, November 15, 2017 at 10:54:27 AM UTC-5, Dean Kamali wrote: > > Hey everyone > > I'm trying this co

[ansible-project] wait_for and with_items hangs

2017-11-15 Thread Dean Kamali
Hey everyone I'm trying this combination, can't figure out what I'm doing wrong, When I try the following it works - name: Wait for service wait_for: path: /tmp/node-41.log search_regex: 'Docker is up and running' delegate_to: localhost However when I try and loop over hosts group, it

[ansible-project] Curl -F option and ansible URI module

2017-05-11 Thread Dean Kamali
I'm trying to use ansible's uri module to mimic curl command, I need to pass options when uploading an XML file. My curl command has number of options passed via -F, --form

[ansible-project] Running ios_template on mac osx under virtualenv

2016-10-17 Thread Dustin Dean
Hello Everyone, I am getting the following error below when I try to run the ios_command module. fatal: [switch]: FAILED! => {"changed": false, "failed": true, "msg": "paramiko is required but does not appear to be installed"} Ive tried updating paramiko to the latest version and it still

[ansible-project] ec2_vpc_route_table not working with NAT gateways

2016-03-07 Thread Dean Mills
Having troubles trying to setup the route tables in a VPC with a NAT gateway as the target. - name: Create Private B route tables ec2_vpc_route_table: vpc_id: '{{ vpc_id }}' region: '{{ vpc_region }}' subnets: - '{{ vpc_subnet_private_b }}' routes: -

[ansible-project] Re: Create GCE instances msg: Unexpected response: {}

2015-12-15 Thread dean
Has anyone resolved this issue? I am experiencing the same thing but cannot find the cause of the error. On Tuesday, October 13, 2015 at 12:02:34 PM UTC-7, Anatoliy Kovalenko wrote: > > Any ideas or help would be very much appreciated! can't resolve it by > ourselves > > On Friday, October 9,

[ansible-project] Issue creating instances on GCE

2015-12-15 Thread dean
-central1-b name=localhost failed: [localhost] => {"changed": false, "failed": true} msg: Unexpected response: {} FATAL: all hosts have already failed -- aborting PLAY RECAP to retry, use: --limit

Re: [ansible-project] Trying to access groups[] programmatically not working

2015-07-06 Thread Dean Mills
Thanks Brian, although that didn't change the error any :( D On Saturday, July 4, 2015 at 12:07:52 AM UTC-3, Brian Coca wrote: try haproxy_group: {{groups[machine_environment + '.' + vpc_region + '.' + proxy_servers]}} -- Brian Coca -- You received this message because you are

Re: [ansible-project] Trying to access groups[] programmatically not working

2015-07-06 Thread Dean Mills
Sorry Brian, I should have mentioned I caught that and fixed it after posting the original question! :( D On Monday, July 6, 2015 at 11:09:39 AM UTC-3, Brian Coca wrote: well, the group is 'develop' and your string is 'development' -- Brian Coca -- You received this message because

[ansible-project] Re: ec2 module, encrypted: true doesn't create EBS volume with encryption enabled

2015-06-29 Thread Dean Mills
Disk encryption is not supported on a t2.micro instance. You need to use a supported instance size and then it should work. Did the instance creation fail? My guess is it should, but perhaps that depends on what AWS/boto sends back.

[ansible-project] Multiple EC2 Windows hosts

2015-06-22 Thread Dean Mills
HI all, Am trying to admin/setup multiple EC2 Windows hosts and have hit a bit of a snag. I have playbooks that create the initial instances just fine, along with one that creates a list of the Instance IDs of the Windows hosts I need using the ec2 module, and one that gets the default

[ansible-project] Unable to source a script?

2015-06-19 Thread Dean Mills
Hi all, Am trying to install nvm and PM2 from a playbook and I've hit a snag. One of the commands I need to run is to source the pm2 users .profile file. The issue is I don't seem to be able to do that from ansible (am using 1.9.1, in case that matters): - name: Source nvm profile

Re: [ansible-project] Unable to source a script?

2015-06-19 Thread Dean Mills
I get a slightly different error now: TASK: [Source nvm profile] failed: [10.17.100.59] = {changed: true, cmd: source /home/pm2/.profile, delta: 0:00:00.001528, end: 2015-06-19 17:18:58.307304, rc: 127, start: 2015-06-19 17:18:58.305776,

Re: [ansible-project] Unable to source a script?

2015-06-19 Thread Dean Mills
On Fri, Jun 19, 2015 at 1:20 PM, Dean Mills dean@gmail.com javascript: wrote: I get a slightly different error now: TASK: [Source nvm profile] failed: [10.17.100.59] = {changed: true, cmd: source /home/pm2/.profile, delta: 0