[ansible-project] Re: [WARNING]: Error in vault password file loading (default)

2018-03-18 Thread Vino B
Hi All, Any help on this is much appriciated From, Vino.B On Sunday, March 18, 2018 at 6:30:47 PM UTC+8, Vino B wrote: > > Hi All, > >Request you help, after upgrade ansible to 2.6 the password vault is > not working as expected, and getting the below error, before the upgrade it > was

Re: [ansible-project] reboot via ansible 2.4

2018-03-18 Thread Mirko Friedenhagen
Hello you wait 10 seconds before calling shutdown but check after 5 seconds whether the port is accessible again. I use async as well but firstly check via a localaction that the ssh port is drained/not reachable anymore Best regards Mirko -- Sent from my mobile Am 15.03.2018 15:21 schrieb

[ansible-project] Re: Repeat a task based on a csv string from extra_var

2018-03-18 Thread flowerysong
On Sunday, March 18, 2018 at 11:17:56 PM UTC-4, GoFigure wrote: > > Hello All, > > There is a specific nut I am trying to crack in ansible. We want to dev a > job template that add disks to and server instance. The size and number of > disk will be provided as an extra_var csv string, eg.

[ansible-project] Openstack instance reconfigure pointers

2018-03-18 Thread GoFigure
Hey, I've been asked to look at using ansible to reconfigure openstack instance, eg add disks or change flavour (resize cpu/ram). Has anyone done something similar? looking at the docs http://docs.ansible.com/ansible/latest/list_of_cloud_modules.html It looks like disks are covered via

[ansible-project] Repeat a task based on a csv string from extra_var

2018-03-18 Thread GoFigure
Hello All, There is a specific nut I am trying to crack in ansible. We want to dev a job template that add disks to and server instance. The size and number of disk will be provided as an extra_var csv string, eg. 10,100,25,200 would add 4 disks of sizes 10GB, 100GB, 25GB & 200GB. We have the

[ansible-project] Re: Ansible issues with Windows deployment

2018-03-18 Thread Jordan Borean
Yep, so the script ran but it didn't handle a failure on the xcopy it ran so it reported it was fine (even though no copy occurred). Because it is also dealing with network shares and mounted drives I would be quite certain that is going to be an issue due to the same reasons I stated with

[ansible-project] Re: Ansible issues with Windows deployment

2018-03-18 Thread 12177589
在 2018年3月16日星期五 UTC+8下午5:09:30,Jordan Borean写道: > > This is failing because of the reasons I explained in your other question > https://groups.google.com/forum/#!topic/ansible-project/Jz9ByKAJzS0. In > short you should look at using become on your tasks to bypass the WinRM > limitations. Also

Re: [ansible-project] Re: How to handle "inactive" network card

2018-03-18 Thread Lienj
Yeah sure, sorry wrong copy/paste i haven't syntax problem on my original playbook. Anyway i found the solution which is: - set_fact: ifaces: "{{ ifaces|default({}) | combine({hostvars[item]['ansible_%s' | format(local_iface)]['ipv4']['address']: local_iface}) }}" when:

Re: [ansible-project] Starting AppDynamics with play

2018-03-18 Thread Kai Stian Olstad
On Tuesday, 13 March 2018 13.10.49 CET Patrick Hunt wrote: > This indicates that the EUM processor has started, however, when I log into > the server EUM is not running. > > When entering the commands in manually to start eum there is an additional > line of output that is present 3-5 seconds

Re: [ansible-project] Sending email notifications to group once playbook is executed

2018-03-18 Thread Kai Stian Olstad
On Saturday, 17 March 2018 16.12.27 CET Balaji wrote: > How can I achieve to make ansible to send email only once if site.yml is > called OR at end site.yml tasks are completed? > > Any suggestion..! Add a play in bottom of site.yml that sends the mail. -- Kai Stian Olstad -- You

[ansible-project] Re: [WARNING]: Error in vault password file loading (default)

2018-03-18 Thread Vino B
Hi All, Tried to re-create the Vault password, even then no luck, below are the step performed vi target.yml ansible_user: ansible ansible_ssh_pass: ansible_become_pass: touch target.pass ansible-vault encrypt target.pass Enter the Vault password : Confirm New Vault password :

[ansible-project] how to convert Template to VM

2018-03-18 Thread olivier pouilly
Hi all, I tried to convert my template to a VM. I created a playbook to do that but when I play the playbook it, It don't work: - hosts: all gather_facts: false connection: local tasks: - name: Create a VM template vmware_guest: hostname=192.168.0.1 username=usernme

[ansible-project] [WARNING]: Error in vault password file loading (default)

2018-03-18 Thread Vino B
Hi All, Request you help, after upgrade ansible to 2.6 the password vault is not working as expected, and getting the below error, before the upgrade it was working fine without any issues. *ansible-playbook /home/ansible/playbooks/oscheck.yml --syntax-check* [WARNING]: Error in vault

[ansible-project] EC2 pair keys generation failing to show up in AWS AMI info

2018-03-18 Thread flynn
My code works and returns the ssh fingerprint of my code and returns the keypair name... however, I do not find my created keypair name in the AWS console with newly made aws instance. This means that there's permission error on AWS, Ansible code logic error, or lack of understanding the EC2

Re: [ansible-project] Re: How to handle "inactive" network card

2018-03-18 Thread Kai Stian Olstad
On Friday, 16 March 2018 13.11.08 CET Lienj wrote: > I forgot to say that "item" refer to a list of hosts in a group. > I tried with these special condition: > > - set_fact: > *when: hostvars[item]['ansible_'~local_iface]['ipv4'] is defined* > ifaces: "{{ ifaces|default({}) |