Re: [ansible-project] ec2 instance not reachable

2020-06-06 Thread Karl Auer
A security group has no effect until it is attached to an interface. You will need to attach your new security group to the interface on the EC2 instance before you will be able to reach the instance on port 22. Regards, K. On Sun, Jun 7, 2020 at 2:14 PM Sanjay Chakraborty wrote: > Hi guys, >

[ansible-project] ec2 instance not reachable

2020-06-06 Thread Sanjay Chakraborty
Hi guys, I need to set up some ec2 instances for my project and I am in the process of doing proof of concept. My playbook creates an aws ec2 instance and I am using an already created security group that includes ssh however for some reason it is failing to open the port 22. launch_east_cost_e

Re: [ansible-project] disable_service_controls is not working

2020-06-06 Thread Vladimir Botka
On Sat, 6 Jun 2020 17:41:05 -0700 (PDT) Vishwas Govekar wrote: > when: "{{ disable_service_controls| > default(false) }}" == false See "The When Statement" https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#the-when-statement " ... which contains a raw J

Re: [ansible-project] disable_service_controls is not working

2020-06-06 Thread Abhijeet Kasurde
Hi Vishwas, Without looking at logs and playbooks used, it is very difficult to tell what is wrong. Please provide details about background, roles used, a snippet of playbook failing, console log of the run, debugging steps taken, etc. On Sun, Jun 7, 2020 at 6:11 AM Vishwas Govekar wrote: > Hi

[ansible-project] disable_service_controls is not working

2020-06-06 Thread Vishwas Govekar
Hi I have ansible roles for each app which has stop and start tasks ,I have global role deploy_all which use stop all ,deploy apps in sequential order and start all When I call the global role deploy_all the local start and stop should not work .I have passed the when: "{{ disable_service_con

Re: [ansible-project] Passing variables between hosts

2020-06-06 Thread Andrew Morgan
Thank Mr.Visser, using delegate_to worked - name: Terminate instances that were previously launched ec2: state: 'absent' instance_ids: "{{ instanceterminate.stdout }}" region: us-east-1 delegate_to: dev_java # when: ENTRY.rc == 0 or ENTRY.rc >= 2 On Wednesday, 3 June 2020

Re: [ansible-project] Re: windows update playbook failed

2020-06-06 Thread Tony Wong
Thank you What else can I add to this playbook? On Sat, Jun 6, 2020 at 2:23 PM Jordan Borean wrote: > It didn’t fail on any patches, the ones listed were filtered because they > didn’t match any of the categories you listed in the task. > > The difference between reboot: yes and win_reboot is t

[ansible-project] Re: windows update playbook failed

2020-06-06 Thread Jordan Borean
It didn’t fail on any patches, the ones listed were filtered because they didn’t match any of the categories you listed in the task. The difference between reboot: yes and win_reboot is that the former will reboot during the win_updates take and continue to check if there are more updates avail

[ansible-project] issues building json body for rest api update

2020-06-06 Thread sebastien Morissette
Hi, I am trying to update an object on an rest api endpoing and I need to build the proper json structure. I am getting unwanted extra sets of quotes in my activateRegions list and I do not know how to remove them or build this in another way.. i'm really close just missing something.. any tho

[ansible-project] Re: windows update playbook failed

2020-06-06 Thread Tony Wong
also what is the difference with having reboot: yes vs - name: reboot host if required win_reboot: when: update_result.reboot_required On Sat, Jun 6, 2020 at 7:43 AM Tony Wong wrote: > I brought up a new 2012 server and decided to use anisble to patch it. > > but it fai

[ansible-project] windows update playbook failed

2020-06-06 Thread Tony Wong
I brought up a new 2012 server and decided to use anisble to patch it. but it failed on some patches fatal: [vasvw-winpsctst]: FAILED! => { "changed": true, "failed_update_count": 0, "filtered_updates": { "2221dd34-39bb-4f16-b320-be49fe4a6b95": { "categories": [

[ansible-project] Default values are also added part of user input in ansible resource modules, is this bug or by design?

2020-06-06 Thread Mohamed Javeed
Hi All, Default values are also added part of user input in ansible resource modules, is this bug or by design? Below is the configuration available in switch: - name: Ethernet28 access: vlan: 11 trunk: - vlan: 12