Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Vishal Bobade
I would assume that you could run with -vvv and it will show you the
stdout/stderr that indicates the failure in execution.

On Tue, 11 Feb, 2020, 12:55 PM Vishal Bobade, 
wrote:

> Hi,
>
> Seems related to the particular module you are trying to use here.
>
> Could you try performing this manually by ansible i.e. not by using
> playbook with debug mode enabled and see what error u see.
>
>
> On Tue, 11 Feb, 2020, 12:16 AM Poemy,  wrote:
>
>> As requested I commented out the *become_flags*, which gives me the
>> following task:
>>
>> - name: Install needed packages for Docker
>>   yum:
>> name: yum-utils,device-mapper-persistent-data,lvm2
>> state: latest
>>   become: yes
>>   become_method: dzdo
>>
>> And this gives as result the same error
>>
>> fatal: [10.7.201.114]: FAILED! => {"changed": false, "module_stderr": "",
>> "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the
>> exact error", "rc": 1}
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/f1b2b89c-11dc-4470-be3f-6c470136824f%40googlegroups.com
>> 
>> .
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJWgDiaUR6PTV8t0chsRJo52evZKB7mcUW7-nyDOsfPHNj-mwg%40mail.gmail.com.


Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Vishal Bobade
Hi,

Seems related to the particular module you are trying to use here.

Could you try performing this manually by ansible i.e. not by using
playbook with debug mode enabled and see what error u see.


On Tue, 11 Feb, 2020, 12:16 AM Poemy,  wrote:

> As requested I commented out the *become_flags*, which gives me the
> following task:
>
> - name: Install needed packages for Docker
>   yum:
> name: yum-utils,device-mapper-persistent-data,lvm2
> state: latest
>   become: yes
>   become_method: dzdo
>
> And this gives as result the same error
>
> fatal: [10.7.201.114]: FAILED! => {"changed": false, "module_stderr": "",
> "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the
> exact error", "rc": 1}
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f1b2b89c-11dc-4470-be3f-6c470136824f%40googlegroups.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJWgDiY9CMGBqLP7%3D6gyzTukB%2B8cWk-EuxhJOqZ6u4U8DbW-4A%40mail.gmail.com.


[ansible-project] aws ec2 attach snapshot ansible playbook error message

2020-02-10 Thread Sandy Hung
Dear all:

I have some problem I don't know I attach ebs from snapshot but attach show 
error message please help thanks.

fatal: [localhost]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The 
error was: list object has no element 0\n\nThe error appears to be in 
'/home/sandy/aws/create-EBS.yml': line 74, column 6, but may\nbe elsewhere 
in the file depending on the exact syntax problem.\n\nThe offending line 
appears to be:\n\n\n   - name: attach ebs volume from snapshot\n ^ 
here\n"

 - name: Get snapshot info
 ec2_snapshot_info:
   aws_access_key: "{{aws_access_key}}"
   aws_secret_key: "{{aws_secret_key}}"
   region: "{{ region }}"
   filters:
"tag:Name": snapshot
 register: ec2_snapshot_facts


"this error


- name: attach ebs volume from snapshot
 ec2_vol:
   aws_access_key: "{{ aws_access_key }}"
   aws_secret_key: "{{ aws_secret_key }}"
   region: "{{ region }}"
   zone: "{{zone}}"
   instance: "{{ instance_id }}"
   device_name: "{{ device_name }}"
   snapshot_ids: '{{ec2_snapshot_facts.snapshots[0].snapshot_id}}'
   with_items: "{{instance_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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d9a813cb-04b7-4c6d-9d87-eedc8b65c8cd%40googlegroups.com.


Re: [ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-10 Thread Andre Gronwald
exactly.

Am Dienstag, 11. Februar 2020 07:19:23 UTC+1 schrieb Rahul Kumar:
>
> It means, serial will guarantee that task will be executed on all hosts at 
> the end ( may be some host first , then other etc ) provided no host fails .
>
> On Tue, 11 Feb 2020 at 11:43 AM, Andre Gronwald  > wrote:
>
>> As far as I understand "limits" actually executes the tasks only to that 
>> ansible host(s), whereas "serial" defines the concurrent hosts the tasks 
>> runs against. => serial doesn't limit the affected hosts overall, only the 
>> timely manner.
>>
>> Am Montag, 10. Februar 2020 06:09:07 UTC+1 schrieb Rahul Kumar:
>>>
>>> Thanks Chiku , How it is different from --limit option (which limits no. 
>>> of nodes and decides on which play should be invoked)  invoked from ansible 
>>> command line ?
>>> And which is the best practice recommended ?
>>>
>>> Regards
>>> Rahul
>>>
>> -- 
>> 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 ansible...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/2c56f31b-6355-4d5e-be28-97e90adc%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/595563ad-8263-4b39-8a14-8e05adb6ffbe%40googlegroups.com.


[ansible-project] aws ec2 attach ebs volume from snapshot error

2020-02-10 Thread Sandy Hung
Dear all:

I have some problem I don't know I attach ebs from snapshot but attach show 
error message please help thanks.

fatal: [localhost]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The 
error was: list object has no element 0\n\nThe error appears to be in 
'/home/sandy/aws/create-EBS.yml': line 74, column 6, but may\nbe elsewhere 
in the file depending on the exact syntax problem.\n\nThe offending line 
appears to be:\n\n\n   - name: attach ebs volume from snapshot\n ^ 
here\n"

 - name: Get snapshot info
 ec2_snapshot_info:
   aws_access_key: "{{aws_access_key}}"
   aws_secret_key: "{{aws_secret_key}}"
   region: "{{ region }}"
   filters:
"tag:Name": snapshot
 register: ec2_snapshot_facts


"this error


- name: attach ebs volume from snapshot
 ec2_vol:
   aws_access_key: "{{ aws_access_key }}"
   aws_secret_key: "{{ aws_secret_key }}"
   region: "{{ region }}"
   zone: "{{zone}}"
   instance: "{{ instance_id }}"
   device_name: "{{ device_name }}"
   snapshot_ids: '{{ec2_snapshot_facts.snapshots[0].snapshot_id}}'
   with_items: "{{instance_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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/49bb7bb8-294c-48f0-bc8c-151f60afcc66%40googlegroups.com.


Re: [ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-10 Thread Rahul Kumar
It means, serial will guarantee that task will be executed on all hosts at
the end ( may be some host first , then other etc ) provided no host fails .

On Tue, 11 Feb 2020 at 11:43 AM, Andre Gronwald 
wrote:

> As far as I understand "limits" actually executes the tasks only to that
> ansible host(s), whereas "serial" defines the concurrent hosts the tasks
> runs against. => serial doesn't limit the affected hosts overall, only the
> timely manner.
>
> Am Montag, 10. Februar 2020 06:09:07 UTC+1 schrieb Rahul Kumar:
>>
>> Thanks Chiku , How it is different from --limit option (which limits no.
>> of nodes and decides on which play should be invoked)  invoked from ansible
>> command line ?
>> And which is the best practice recommended ?
>>
>> Regards
>> Rahul
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2c56f31b-6355-4d5e-be28-97e90adc%40googlegroups.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGH8rEykmTK84meLgmMLK%2BFJb05K12%3Dm7q3qx1J4%2B4uXKCckqQ%40mail.gmail.com.


Re: [ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-10 Thread Andre Gronwald
As far as I understand "limits" actually executes the tasks only to that 
ansible host(s), whereas "serial" defines the concurrent hosts the tasks 
runs against. => serial doesn't limit the affected hosts overall, only the 
timely manner.

Am Montag, 10. Februar 2020 06:09:07 UTC+1 schrieb Rahul Kumar:
>
> Thanks Chiku , How it is different from --limit option (which limits no. 
> of nodes and decides on which play should be invoked)  invoked from ansible 
> command line ?
> And which is the best practice recommended ?
>
> Regards
> Rahul
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2c56f31b-6355-4d5e-be28-97e90adc%40googlegroups.com.


[ansible-project] Re: How to pass Node_Resource_Group while creating AKS cluster via ansible azure_rm_aks module

2020-02-10 Thread Prakash Sharma
Has anyone tried this ?

On Saturday, February 8, 2020 at 11:06:38 PM UTC+8, Prakash Sharma wrote:
>
> Hello , 
>
> I am having a difficult time to understand how one can pass node resource 
> group while creating AKS cluster with ansible modules . 
>
> As I know , in azure cli , one has to add aks-preview addon , and in 
> terraform there is variable to pass node_resource_group 
> https://www.terraform.io/docs/providers/azurerm/d/kubernetes_cluster.html.
>
> This I am not able to find in Ansible . 
>
> Does anyone have any suggestion/update about this ?
>
> Regards,
> Prakash.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/608c8ea8-d484-43c1-9d32-5deec54f43a9%40googlegroups.com.


[ansible-project] Re: how can i have my windows instances to use IP address instead of dns name?

2020-02-10 Thread Jordan Borean
Just set the connection to use IPs as you would Linux it should just work. 
Without seeing the error that you are receiving we can't help you anymore. 
The most common reason why it doesn't is if you are using Kerberos auth. 
This is because DNS is a very important part of Kerberos auth and using IPs 
removes some of protection kerberos offers. It is still possible but I 
wouldn't recommend it at all.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c2c12f70-4a1f-4fb1-8fdd-f7a6af14b382%40googlegroups.com.


Re: [ansible-project] nmcli module seems broken. Documention mentions old libraries for CentOS8/RHEL8

2020-02-10 Thread matzuba
Thanks for the input James!  more food for thought... i've looked at quite 
a lot of the modules and a decent amount are from the community!  Will have 
to watch the OS upgrades and upgrade accordinly.

thanks for the tip, that role has given me quite a few ideas and answered a 
few questions.  Good to see it is supported by RHEL as well.

I notice they use some python scripts to do the configuration but couldn't 
actually work out how they are called/used by the role.  I am not familar 
with scripts within a role that provide the heavy lifting.  do you know? 

On Monday, 10 February 2020 08:59:59 UTC+8, James Cassell wrote:
>
> On Fri, Feb 7, 2020, at 7:34 AM, Vladimir Botka wrote: 
> > On Fri, 7 Feb 2020 02:32:12 -0800 (PST) 
> > matzuba > wrote: 
> > 
> > > [...] 
> > > NM seems to be the recommended way and where things are going so i 
> would 
> > > like to get this to work but obviously, i cant use the nmcli module to 
> do 
> > > so. 
> > > NM will still read the interface scripts and i have also tested 
> > > /etc/networkmanager/conf.d configuration. 
> > > [...] 
> > 
> > Let me share couple of thoughts that might help you to make your choice. 
> > 
> > The problem is the complexity. Both vertical and horizontal. Horizontal 
> > across the distributions and vertical across the layers "User_land <-> 
> D-Bus 
> > <-> System_configuration <-> Device_drivers". A nightmare for any 
> maintainer. 
> > 
> > With Ansible, you connect to the remote host and escalate to root. Then 
> you 
> > use nmcli, which is user-land tool, and go through D-Bus to configure 
> the 
> > system. It's an overkill. 
> > 
> > It's not a core module. The nmcli module is maintained by community and 
> is in 
> > preview. 
> > 
>
> This is true of the vast majority of ansible modules. The core team has no 
> interest in taking on more modules. Even the very useful ini_file module is 
> community and preview. 
>
> For the topic at hand, check out the linux-system-roles project, which is 
> shipped and supported in RHEL as rhel-system-roles. [1] 
>
> V/r, 
> James Cassell 
>
> [1] https://github.com/linux-system-roles/network 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0834fa8b-e509-4cd0-86a5-4c4e23c311e4%40googlegroups.com.


[ansible-project] how can i have my windows instances to use IP address instead of dns name?

2020-02-10 Thread Work-Hard
Hello,
how can i have my windows instances to use IP address instead of dns name? 
it works with my Linux instances but windows.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6885c38c-b75d-4ddb-a295-c8805a711212%40googlegroups.com.


Re: [ansible-project] Apache NiFi ansible script

2020-02-10 Thread Jonathan Lozada De La Matta
please read the documentation on variaboes.

On Mon, Feb 10, 2020 at 5:23 PM Nishu Sinha  wrote:

> Hi
>
> I need some help in ansible scripting for Apache NiFi
>
> with_items:
>   - { src: 'templates/activity-history.properties.j2', dest: 
> '/opt/cts/nifi/conf/activity-history.properties' }
>   - { src: 'templates/nifi.properties.j2', dest: 
> '/opt/cts/nifi/conf/nifi.properties' }
>   - { src: 'templates/activity-history-config.properties.j2', dest: 
> '/opt/cts/nifi/conf/activity-history-config.properties' }
>   - { src: 'templates/activityhistoryScript.groovy.j2', dest: 
> '/opt/cts/nifi/conf/activityhistoryScript.groovy' }
>   - { src: 'templates/cacheLoadWaitScript.groovy.j2', dest: 
> '/opt/cts/nifi/conf/cacheLoadWaitScript.groovy' }
>
>
> I am stuck in passing the variables in the configproperties.yml file
>
> Can someone help in thai
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2ebdc61b-504d-4685-a24c-a999b451f0ce%40googlegroups.com
> 
> .
>
-- 

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Red Hat 

Senior Automation Practice Consultant & Automation CoP Manager

Join the Automation CoP! https://red.ht/autocop
@redhatjobs    redhatjobs
 @redhatjobs



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKXJa5Q1Ez8ZcvhhOkycfZYedK%3D1sbzdckhR_8swDv_Xw%40mail.gmail.com.


Re: [ansible-project] simple problem has me stumped

2020-02-10 Thread Vladimir Botka
On Mon, 10 Feb 2020 13:18:24 -0800 (PST)
misterT1958  wrote:

> [root@cluster-mgmt tasks]# ansible-playbook -i ./hosts main.yml
> [...]
> The playbook is simple:
> ---
> # tasks file for testVar
> 
> - hosts: localhost
>   name: CLUSTERS team downtime orchestration play
>   gather_facts: true
> 
>   tasks:
>   - name: set nagios downtime
> debug:
>   msg: "the value of the variable {{ myTestVar }}"
> [...]
> [root@cluster-mgmt testVar]# tree
> .
> ├── ansible.cfg
> ├── defaults
> │   └── main.yml
> ├── files
> ├── handlers
> │   └── main.yml
> ├── hosts
> ├── meta
> │   └── main.yml
> ├── README.md
> ├── tasks
> │   ├── ansible.cfg -> ../ansible.cfg
> │   ├── hosts -> ../hosts
> │   └── main.yml
> ├── templates
> ├── tests
> │   ├── inventory
> │   └── test.yml
> └── vars
> └── main.yml

You're mixing the concepts of a "Role"
https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#roles
and a "Playbook"
https://docs.ansible.com/ansible/latest/user_guide/playbooks.html

1) Move the directory "testVar" into the directory "roles". Remove "hosts" and
"ansible.cfg" from the role and put them into the current directory.

 ├── playbook.yml
 ├── hosts
 ├── ansible.cfg
 ├── roles
 │   └── testVar

[root@cluster-mgmt testVar]# tree
 ├── defaults
 │   └── main.yml
 ├── files
 ├── handlers
 │   └── main.yml
 ├── meta
 │   └── main.yml
 ├── README.md
 ├── tasks
 │   └── main.yml
 ├── templates
 ├── tests
 │   ├── inventory
 │   └── test.yml
 └── vars
 └── main.yml

2) Make sure "ansible.cfg" points to the roles

  $ grep roles ansible.cfg 
  roles_path = $PWD/roles

3) Create playbook.yml

  - hosts: localhost
name: CLUSTERS team downtime orchestration play
gather_facts: true
roles:
  - testVar

4) Remove the playbook directives from roles/testVar/tasks/main.yml

  # tasks file for testVar
  - name: set nagios downtime
debug:
  msg: "the value of the variable {{ myTestVar }}"

5) Now the command should work

  $ ansible-playbook -i hosts -c ansible.cfg playbook.yml

HTH,

-vlado

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200210232818.44695ed3%40gmail.com.


pgpVizRGZkaKa.pgp
Description: OpenPGP digital signature


[ansible-project] Apache NiFi ansible script

2020-02-10 Thread Nishu Sinha
Hi 

I need some help in ansible scripting for Apache NiFi

with_items:
  - { src: 'templates/activity-history.properties.j2', dest: 
'/opt/cts/nifi/conf/activity-history.properties' }
  - { src: 'templates/nifi.properties.j2', dest: 
'/opt/cts/nifi/conf/nifi.properties' }
  - { src: 'templates/activity-history-config.properties.j2', dest: 
'/opt/cts/nifi/conf/activity-history-config.properties' }
  - { src: 'templates/activityhistoryScript.groovy.j2', dest: 
'/opt/cts/nifi/conf/activityhistoryScript.groovy' }
  - { src: 'templates/cacheLoadWaitScript.groovy.j2', dest: 
'/opt/cts/nifi/conf/cacheLoadWaitScript.groovy' }


I am stuck in passing the variables in the configproperties.yml file

Can someone help in thai 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2ebdc61b-504d-4685-a24c-a999b451f0ce%40googlegroups.com.


[ansible-project] simple problem has me stumped

2020-02-10 Thread misterT1958
I have a simple scenario that fails, but I can't figure out why.  Here's 
the command line invocation and the result:

[root@cluster-mgmt tasks]# ansible-playbook -i ./hosts main.yml

PLAY [CLUSTERS team downtime orchestration play] 


TASK [Gathering Facts] 
**
ok: [localhost]

TASK [set nagios downtime] 
**
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an 
undefined variable. The error was: 'myTestVar' is undefined\n\nThe error 
appears to have been in 
'/autofs/nccs-svm1_home1/tw58/SANDBOX/ANSIBLE_VARDIR/testVar/tasks/main.yml': 
line 9, column 5, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n  tasks:\n  - name: 
set nagios downtime\n^ here\n"}
 [WARNING]: Could not create retry file 
'/autofs/nccs-svm1_home1/tw58/SANDBOX/ANSIBLE_VARDIR/testVar/tasks/main.retry'. 
 
   [Errno 13] Permission denied:
u'/autofs/nccs-svm1_home1/tw58/SANDBOX/ANSIBLE_VARDIR/testVar/tasks/main.retry'


PLAY RECAP 
**
localhost  : ok=1changed=0unreachable=0failed=1

The playbook is simple:

---
# tasks file for testVar

- hosts: localhost
  name: CLUSTERS team downtime orchestration play
  gather_facts: true

  tasks:
  - name: set nagios downtime
debug:
  msg: "the value of the variable {{ myTestVar }}"

and the variable definition file is even more simple:

[root@cluster-mgmt vars]# more main.yml
---
# vars file for testVar
myTestVar: 58

This is my directory tree:

[root@cluster-mgmt testVar]# tree
.
├── ansible.cfg
├── defaults
│   └── main.yml
├── files
├── handlers
│   └── main.yml
├── hosts
├── meta
│   └── main.yml
├── README.md
├── tasks
│   ├── ansible.cfg -> ../ansible.cfg
│   ├── hosts -> ../hosts
│   └── main.yml
├── templates
├── tests
│   ├── inventory
│   └── test.yml
└── vars
└── main.yml

Been staring at this all day, trying different things, always get the 
"undefined variable"!!

Does anybody out there see the problem?

Thanks
T

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d66b7858-ee9a-4c9a-ba0c-8c885fd1af88%40googlegroups.com.


[ansible-project] Re: win_domain_group_membership

2020-02-10 Thread Jesse Lyon
The full traceback is:
Could not add member(s) to one or more ADGroup.
At line:82 char:9
+ Add-ADPrincipalGroupMembership -Identity $group_member -Membe ...
+ ~
+ CategoryInfo  : OperationStopped: (Microsoft.Activ...ement.
ADGroup[]:ADGroup[]) [Add-ADPrincipalGroupMembership], ADException
+ FullyQualifiedErrorId : 1,Microsoft.ActiveDirectory.Management.
Commands.AddADPrincipalGroupMembership


ScriptStackTrace:
at , : line 82


Microsoft.ActiveDirectory.Management.ADException: Could not add member(s) 
to one or more ADGroup.
   at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(
ErrorRecord errorRecord)
fatal: [ansible01.domain.DEV]: FAILED! => {
"changed": false,
"msg": "Unhandled exception while executing module: Could not add 
member(s) to one or more ADGroup."
}




On Monday, February 10, 2020 at 4:22:50 PM UTC-5, Jesse Lyon wrote:
>
> My bad on linking to the wrong issue :)
>
> I've pulled it down and am giving it a shot now, will have results and 
> comment on the PR if successful... so far I'm fighting the woes of a 
> stripped down dev domain.
>
> Thanks again Jordan.
>
> On Monday, February 10, 2020 at 2:03:12 PM UTC-5, Jordan Borean wrote:
>>
>> Looks like I jumped the gun with closing that issue, the backported issue 
>> referenced is for a separate problem. The actual cross domain support of 
>> groups is still not supported in the module. There is a PR which you can 
>> try out https://github.com/ansible/ansible/pull/65138 and comment on if 
>> it solves your issue.
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f537749f-19ae-4d6d-835c-c12c0f29ba4f%40googlegroups.com.


[ansible-project] Re: win_domain_group_membership

2020-02-10 Thread Jesse Lyon
The full traceback is:
Could not add member(s) to one or more ADGroup.
At line:82 char:9
+ Add-ADPrincipalGroupMembership -Identity $group_member -Membe ...
+ ~
+ CategoryInfo  : OperationStopped: 
(Microsoft.Activ...ement.ADGroup[]:ADGroup[]) 
[Add-ADPrincipalGroupMembership], ADException
+ FullyQualifiedErrorId : 
1,Microsoft.ActiveDirectory.Management.Commands.AddADPrincipalGroupMembership

ScriptStackTrace:
at , : line 82

Microsoft.ActiveDirectory.Management.ADException: Could not add member(s) 
to one or more ADGroup.
   at 
System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord
 
errorRecord)
fatal: [d1dwansible01.COLUMBUSCHILDRENS.DEV]: FAILED! => {
"changed": false,
"msg": "Unhandled exception while executing module: Could not add 
member(s) to one or more ADGroup."
}




On Monday, February 10, 2020 at 4:22:50 PM UTC-5, Jesse Lyon wrote:
>
> My bad on linking to the wrong issue :)
>
> I've pulled it down and am giving it a shot now, will have results and 
> comment on the PR if successful... so far I'm fighting the woes of a 
> stripped down dev domain.
>
> Thanks again Jordan.
>
> On Monday, February 10, 2020 at 2:03:12 PM UTC-5, Jordan Borean wrote:
>>
>> Looks like I jumped the gun with closing that issue, the backported issue 
>> referenced is for a separate problem. The actual cross domain support of 
>> groups is still not supported in the module. There is a PR which you can 
>> try out https://github.com/ansible/ansible/pull/65138 and comment on if 
>> it solves your issue.
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a1b24de2-81a2-4481-a5fc-d8c324d393b8%40googlegroups.com.


[ansible-project] Re: win_domain_group_membership

2020-02-10 Thread Jesse Lyon
My bad on linking to the wrong issue :)

I've pulled it down and am giving it a shot now, will have results and 
comment on the PR if successful... so far I'm fighting the woes of a 
stripped down dev domain.

Thanks again Jordan.

On Monday, February 10, 2020 at 2:03:12 PM UTC-5, Jordan Borean wrote:
>
> Looks like I jumped the gun with closing that issue, the backported issue 
> referenced is for a separate problem. The actual cross domain support of 
> groups is still not supported in the module. There is a PR which you can 
> try out https://github.com/ansible/ansible/pull/65138 and comment on if 
> it solves your issue.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ca0398f3-64a8-4fd9-932a-acc648cf20aa%40googlegroups.com.


Re: [ansible-project] Comparing two hosts with ansible (installed packages and configuration files)

2020-02-10 Thread Vladimir Botka
On Mon, 10 Feb 2020 11:45:39 -0800 (PST)
Elb Isna  wrote:

> How can I use ansible to check out the software differences (installed 
> packages and configuration files)
> between two debian hosts?

Collect the list of installed packages with "package_facts"
https://docs.ansible.com/ansible/latest/modules/package_facts_module.html#package-facts-package-information-as-facts
and use "Set theory filters" to find the differences
https://docs.ansible.com/ansible/devel/user_guide/playbooks_filters.html#set-theory-filters

For example the playbook below shall list the packages installed in
host1 but missing in host2

  - hosts: host1:host2
tasks:
  - package_facts:
  - debug:
  msg: "{{ hostvars.host1.ansible_facts.packages|
   difference(hostvars.host2.ansible_facts.packages) }}"
run_once: true

HTH,

-vlado

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200210211552.4c99413b%40gmail.com.


pgp7v1bzV0I0I.pgp
Description: OpenPGP digital signature


[ansible-project] Comparing two hosts with ansible (installed packages and configuration files)

2020-02-10 Thread Elb Isna
How can I use ansible to check out the software differences (installed packages 
and configuration files) between two debian hosts?  

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a7ba54cc-4063-4ea2-ad11-1414c19c2141%40googlegroups.com.


[ansible-project] Re: win_domain_group_membership

2020-02-10 Thread Jordan Borean
Looks like I jumped the gun with closing that issue, the backported issue 
referenced is for a separate problem. The actual cross domain support of 
groups is still not supported in the module. There is a PR which you can 
try out https://github.com/ansible/ansible/pull/65138 and comment on if it 
solves your issue.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5394d5c5-036b-42e1-a415-1599791d8d6c%40googlegroups.com.


Re: [ansible-project] parted - azure managed disks - unrecognized disk label

2020-02-10 Thread Hugo Gonzalez


On 2/10/20 3:49 AM, 'deewon' via Ansible Project wrote:

Hi all,

I'm pretty certain someone has figured this out so any hints will be 
appreciated


I've attached an  azure managed disk to a linux vm  but noticed it 
doesn't have any disk label  i.e.



The disk label is the partition table, and will not be recognized for an 
unpartitioned disk. There is a parameter in the module called "label" 
with a default of "msdos" as the table format.


https://docs.ansible.com/ansible/latest/modules/parted_module.html#parameter-label

So I guess you can pass it along your partition definitions. Just make 
sure it works idempotently, I haven't tested it.


Hugo G.






Consequently, the ansible parted module returns the below error when 
attempting to create a partition


TASK [role_azure_disk : Partition Azure Disk] 
***

task path: /etc/ansible/roles/role_azure_disk/tasks/main.yml:7
fatal: [labserver]: FAILED! => {"changed": false, "err": "Error: Could 
not stat device /dev/sdc - No such file or directory.\n", "msg": 
"Error while getting device information with parted script: 
'/sbin/parted -s -m /dev/sdc -- unit 'KiB' print'", "out": "", "rc": 1}


To achieve idempotence when re-running playbooks , I'm trying to avoid 
using fdisk passed to the shell module i.e. (echo n; echo p; echo 1; 
echo ; echo ; echo w) | sudo fdisk /dev/sdc


Will appreciate any ideas on how to get around this

Thanks

--
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 ansible-project+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/49c9a80b-1302-4463-a6ee-0e1a2e049e8b%40googlegroups.com 
.


--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fddc5b5c-becc-cb23-74e1-dd70ca0dc0a9%40redhat.com.


[ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Poemy
As requested I commented out the *become_flags*, which gives me the 
following task:

- name: Install needed packages for Docker
  yum:
name: yum-utils,device-mapper-persistent-data,lvm2
state: latest
  become: yes
  become_method: dzdo

And this gives as result the same error

fatal: [10.7.201.114]: FAILED! => {"changed": false, "module_stderr": "", 
"module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the 
exact error", "rc": 1}

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f1b2b89c-11dc-4470-be3f-6c470136824f%40googlegroups.com.


[ansible-project] win_domain_group_membership

2020-02-10 Thread Jesse Lyon
Hey Folks,

I've got a couple of specific questions about win_domain_group_membership.

I can find where support was backported to 2.8, and where its listed as 
supported in 2.9 (same post: https://github.com/ansible/ansible/issues/59829
)
But I can't for the life of me figure out how to convince Ansible do to the 
thing.

The thing being, take Group A from domain 1 and nest it within Group B from 
domain 2.

##CROSS DOMAIN BS.
  - name: H - Nest R Global in H univeral RW
win_domain_group_membership:
  domain_server: "{{ h_domain_server }}"
  domain_username: "{{ h_domain_username }}"
  domain_password: "{{ h_domain_password }}"
  name: "{{ h_u_prefix }}{{ u_name }}{{suffix_RW}}"
  members:
- "{{ r_g_prefix }}{{ g_name }}{{suffix_RW}}@domain.dev"


  - name: H - Nest R Global in H univeral RO
win_domain_group_membership:
  domain_server: "{{ h_domain_server }}"
  domain_username: "{{ h_domain_username }}"
  domain_password: "{{ h_domain_password }}"
  name: "{{ h_g_prefix }}{{ g_name }}{{suffix_RO}}"
  members:
- "{{ r_g_prefix }}{{ g_name }}{{suffix_RO}}@domain.dev"



Note; for members: I've tried numerous ways of indicating that the group 
its to add is in another domain... domain\\group, group@domain, or just 
group, and all bomb out stating that it cannot be found


fatal: [ansible01.DOMAIN.DEV]: FAILED! => {
"added": [],
"changed": false,
"msg": "Could not find domain user, group, service account or computer 
named devdomain\\GGRFStesting123RW",
"removed": []
}



Is there an obvious mistake I'm making?
I'm using ansible 2.9.2 currently.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/756be78a-6af6-4595-90a0-2b7ded40cd6d%40googlegroups.com.


Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Vishal Bobade
Hi,

Does it requires become_flags? Could you try commenting out that one.

On Mon, 10 Feb, 2020, 10:10 PM Poemy,  wrote:

> I followed your suggestions, thanks for that.
>
> I have now following task:
> - name: Install needed packages for Docker
>   yum:
> name: yum-utils,device-mapper-persistent-data,lvm2
> state: latest
>   become: yes
>   become_method: dzdo
>   become_flags: 'su -'
>
> When I run my playbook, it fails with following error message.
> fatal: [10.7.201.114]: FAILED! => {"changed": false, "module_stderr": "",
> "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the
> exact error", "rc": 1}
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/0857d7f6-7aa9-4c17-8064-5c4b2ca2e858%40googlegroups.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJWgDiaPsk5n3WqtF%2Bq0KEK3W1osYuEchtUK7-WRZRXcXye%2Bhg%40mail.gmail.com.


[ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Poemy
I followed your suggestions, thanks for that.

I have now following task:
- name: Install needed packages for Docker
  yum:
name: yum-utils,device-mapper-persistent-data,lvm2
state: latest
  become: yes
  become_method: dzdo
  become_flags: 'su -'

When I run my playbook, it fails with following error message.
fatal: [10.7.201.114]: FAILED! => {"changed": false, "module_stderr": "", 
"module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the 
exact error", "rc": 1}


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0857d7f6-7aa9-4c17-8064-5c4b2ca2e858%40googlegroups.com.


[ansible-project] Illegal info request from server"

2020-02-10 Thread Mr. sHamEem/ IT Club Hub
Hi there ,

i am getting following issue to connect with my Cisco CISCO2951/K9
(revision 1.1)  router any one please help me !

===



*fatal: [router1]: FAILED! => {"changed": false, "msg": "Illegal
info request from server"}*
==

root@firstansible:/etc/ansible#
## db-[99:101]-node.example.com
[IOS]
router1 ansible_ssh_user=bdcom ansible_host=210.4.64.100
ansible_network_os=ios ansible_connection=network_cli
router2 ansible_host=10.10.1.254

root@firstansible:/etc/ansible# ansible-playbook aminul1.yml -vvv
ansible-playbook 2.9.4
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules',
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.12 (default, Oct  8 2019, 14:14:10) [GCC 5.4.0
20160609]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass its
verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its
verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its
verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin

PLAYBOOK: aminul1.yml
**
1 plays in aminul1.yml

PLAY [router1]
*
META: ran handlers

TASK [change hostname BDCOM-TEST]
**
task path: /etc/ansible/aminul1.yml:8



*fatal: [router1]: FAILED! => {"changed": false, "msg": "Illegal
info request from server"}*

PLAY RECAP
*
router1: ok=0changed=0unreachable=0failed=1
   skipped=0rescued=0ignored=0

root@firstansible:/etc/ansible# cat /etc/issue
Ubuntu 16.04.6 LTS \n \l

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEV3LdpKBgJCgyXEUBx-M8gFJGVAT2x6xP9EcNehS3GZbaw7VA%40mail.gmail.com.


Re: [ansible-project] How to use group_vars in ansible templates

2020-02-10 Thread Stefan Hornburg (Racke)
On 2/10/20 12:21 PM, Bala Mutyam wrote:
> Hi there,
> 
> Could someone help me with how to template this config like below please?
> 
> cluster_formation.classic_config.nodes.1 = rabbit@rabbitmq-1
> cluster_formation.classic_config.nodes.2 = rabbit@rabbitmq-2
> cluster_formation.classic_config.nodes.3 = rabbit@rabbitmq-3
> 
> 
> I would like to change nodes.1,2,3 & rabbit@anisble_hostname

So you want to loop over a host group to get this configuration above?

Regards
   Racke

> 
> Thanks
> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f4b3c9f2-a4b3-4052-86a1-06e6dde25054%40googlegroups.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0387e4a8-4858-fc67-8158-5c6dda296b92%40linuxia.de.


signature.asc
Description: OpenPGP digital signature


[ansible-project] How to use group_vars in ansible templates

2020-02-10 Thread Bala Mutyam
Hi there,

Could someone help me with how to template this config like below please?

cluster_formation.classic_config.nodes.1 = rabbit@rabbitmq-1
cluster_formation.classic_config.nodes.2 = rabbit@rabbitmq-2
cluster_formation.classic_config.nodes.3 = rabbit@rabbitmq-3


I would like to change nodes.1,2,3 & rabbit@anisble_hostname

Thanks

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f4b3c9f2-a4b3-4052-86a1-06e6dde25054%40googlegroups.com.


[ansible-project] Not able to ssh on fortigate from ansible

2020-02-10 Thread Bharat Bhushan Mehta
Hi Team,

I am trying to take config backup of fortigate vm which is having version 
v6.2.3 using ansible, while doing this i am getting below error:-
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File 
"/tmp/ansible_fortios_config_payload_BI_dEM/ansible_fortios_config_payload.zip/ansible/modules/network/fortios/fortios_config.py",
 
line 126, in main
  File "/usr/lib/python2.7/site-packages/pyFG/fortios.py", line 103, in open
self.ssh.connect(**cfg)
  File "/usr/lib/python2.7/site-packages/paramiko/client.py", line 380, in 
connect
look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
  File "/usr/lib/python2.7/site-packages/paramiko/client.py", line 554, in 
_auth
self._agent = Agent()
  File "/usr/lib/python2.7/site-packages/paramiko/agent.py", line 363, in 
__init__
self._connect(conn)
  File "/usr/lib/python2.7/site-packages/paramiko/agent.py", line 68, in 
_connect
raise SSHException('could not get keys from ssh-agent')

fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"backup": true,
"backup_filename": null,
"backup_path": "/tmp",
"config_file": null,
"file_mode": false,
"filter": "",
"host": "10.35.110.133",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"src": null,
"timeout": 60,
"username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"vdom": "root"
}
},
"msg": "Error connecting device"

Here is my play book

- hosts: "localhost"
  connection: local
  gather_facts: False
  vars:
   host: "10.35.110.133"
   vdom: "root"
   ssl_verify: "False"
  tasks:
   - name: Backup current config
 fortios_config:
  host: "10.35.110.133"
  username: admin
  password: admin
  backup: yes
  backup_path: /tmp

Please suggest what i can do over here

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/28fb722d-1185-4087-b2fa-44ea904a6ebd%40googlegroups.com.


[ansible-project] Elastic Beanstalk module

2020-02-10 Thread Giles Westwood

The current module in Ansible:-

https://docs.ansible.com/ansible/latest/modules/aws_elasticbeanstalk_app_module.html#aws-elasticbeanstalk-app-module

Doesn't seem to do much that's useful, without a version or environment 
being set. Is there a reason why this module that appears to work at least 
in my testing can't be merged into core:-

https://github.com/gilesw/ansible-elastic-beanstalk

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2eb9bed6-5d92-408b-b4d4-7996d0d97d47%40googlegroups.com.


[ansible-project] parted - azure managed disks - unrecognized disk label

2020-02-10 Thread 'deewon' via Ansible Project
Hi all,

I'm pretty certain someone has figured this out so any hints will be 
appreciated

I've attached an  azure managed disk to a linux vm  but noticed it doesn't 
have any disk label  i.e.


Error: /dev/sdc: unrecognised disk label
Model: Msft Virtual Disk (scsi)
Disk /dev/sdc: 18.3GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:


Consequently, the ansible parted module returns the below error when 
attempting to create a partition

TASK [role_azure_disk : Partition Azure Disk] 
***
task path: /etc/ansible/roles/role_azure_disk/tasks/main.yml:7
fatal: [labserver]: FAILED! => {"changed": false, "err": "Error: Could not 
stat device /dev/sdc - No such file or directory.\n", "msg": "Error while 
getting device information with parted script: '/sbin/parted -s -m /dev/sdc 
-- unit 'KiB' print'", "out": "", "rc": 1}

To achieve idempotence when re-running playbooks , I'm trying to avoid 
using fdisk passed to the shell module  i.e. (echo n; echo p; echo 1; echo 
; echo ; echo w) | sudo fdisk /dev/sdc

Will appreciate any ideas on how to get around this

Thanks

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/49c9a80b-1302-4463-a6ee-0e1a2e049e8b%40googlegroups.com.


[ansible-project] Ansible module with Python replace string in multiple files

2020-02-10 Thread Uppara venkat
Hi all,
I'm new to Ansible module with Python needed some help for below scenario;

we have windows_config.yml  defined all variable in this file,
like target_disk: 'D:'have to find all *ResponseFile.txt in folder in that
we need change replace drive latter as in windows_config.yml.
In all *ResponseFile.txt  files we need replace in multiple files and
places  like USER_INSTCLL_CIR= C and -fileOverwrite_C

Red color letter should be replaced with target_disk.

If any have idea please share examples or code.
-- 


Thanks& Regards,
venkatesulu.U
8147041026

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFMhZ_%2BrxXB5aekAvngUqsnHvTCjQ4jYo3BC8Yfsu0Ym_rifQw%40mail.gmail.com.