Re: [ansible-project] Abridged summary of ansible-project@googlegroups.com - 9 updates in 6 topics

2021-04-21 Thread Margadarsi Ameerpet
*Margadarsi Chit Fund Pvt Ltd* *Ameerpet branch* On Mon, Apr 12, 2021 at 10:10 PM wrote: > ansible-project@googlegroups.com > > Google > Groups >

[ansible-project] Dynamic inventory on openstack

2021-04-21 Thread abhay srivastava
Hello team, How to run ansible using openstack.py inventory script. I need to run ansible playbook on ecs based on tag. So how to use it. -- Regards, Abhay Srivastava --- Mob-9160512000 -- You received this message because you are subscribed to the Google Groups "Ans

Re: [ansible-project] How do i compare the parsed output against a value?

2021-04-21 Thread Vikram S
Hi Dick, I assumed everyone using ansible would have atleast heard about parsing (even if not used it), that's why i didn't elaborate on it. Maybe i was wrong. Parsing is used to extract data from output saved in a custom variable and use that data for comparison purpose (for example). This is

[ansible-project] Invalid ID from playbook

2021-04-21 Thread Andrew Morgan
Hello All, I have a ansible playbook that run successfully except the last step which is to delete EBS voumes from a server. 1)It launches a server 2Gets the facts about the ec2 instances 3)kills the server and kills the volumes(not working) I ran the playbook in verbose mode and got the mess

Re: [ansible-project] How do i compare the parsed output against a value?

2021-04-21 Thread Dick Visser
I have no idea what TTP parser is, but you also didn't tell how that is relevant, so I'll ignore that. What about something basic like: when: show_flash.bandwidth|int >= 5 On Wed, 21 Apr 2021 at 20:30, Vikram S wrote: > > Hi, > > I used TTP parser to parse the output of 'sh run int gi0/0'

[ansible-project] How do i compare the parsed output against a value?

2021-04-21 Thread Vikram S
Hi, I used TTP parser to parse the output of 'sh run int gi0/0' and below is output. Say for example, i want to compare bandwidth value againt a number and check if it higher/lower than a certain value, how do i write the syntax for that? TASK [Display facts] ok: [ROUTER] => { "msg": [

Re: [ansible-project] docker installation with ansible

2021-04-21 Thread Komal Suthar
https://www.linkedin.com/posts/komalsuthar_rightmentor-linuxworld-arth2020-activity-6755807204814671872-eThV Refer this it will help for installation of docker On Wed, Apr 21, 2021, 7:03 PM Dick Visser wrote: > I don't think the error can be any clearer: > > On Wed, 21 Apr 2021 at 13:49, rebecc

Re: [ansible-project] TTP parsing doesn't work in ansible, need assistance

2021-04-21 Thread Vikram S
Hi Pushparaj, TRhanks for your suggestion, modifying syntax helped!! But it's ironical that ansible's own documentation would give wrong syntax as earlier syntax was taken from sample example given in ansible site. Below is the output i get, how do i compare value of 'bytes_free' to a number? i

Re: [ansible-project] TTP parsing doesn't work in ansible, need assistance

2021-04-21 Thread Komal Suthar
"{{ show_space.stdout }}" try in this way On Wed, Apr 21, 2021, 5:00 PM Rajthecomputerguy wrote: > try removing quotes in stdout > > > > On Wed, Apr 21, 2021 at 3:34 PM Vikram S wrote: > >> >> I wrote below script to parse output of 'sh flash:' however iam getting >> blank output. >> >> I check

[ansible-project] Windows Assign a mount point folder path to a drive : Ansible module ???

2021-04-21 Thread Sandeep G
have created a playbook for 1-Initialize a disk : USING win_initialize_disk 2-Create partition with drive letter (fullsize using -1) : USING win_partition 3- Full format the newly created partition (6 drives D,E,F,G,H,I)as NTFS and label it: USING win_format Now my need is i have to creat

Re: [ansible-project] docker installation with ansible

2021-04-21 Thread Dick Visser
I don't think the error can be any clearer: On Wed, 21 Apr 2021 at 13:49, rebecca acheampong wrote: ~/.netrc access too permissive: access permissions must restrict access to > only the owner (/root/.netrc, line 3)"} > -- Sent from a mobile device - please excuse the brevity, spelling and

[ansible-project] Jinja2 2.9 performance degradation

2021-04-21 Thread Patrick Hemmer
So I was trying to upgrade an older Ansible environment from Ansible 2.7 + Jinja2 2.8 and ran across some severe performance degradation. A template task that used to take about 30 sec to complete across all hosts now takes about 15 min, bottlenecking on the CPU of the management host. I ran ac

Re: [ansible-project] - Unable to run the playbook with new modules for IBM V7000 storage boxes

2021-04-21 Thread miqdad patwa
Hello, As per the instructions I installed the collection at this path. [root@ spectrum_virtualize]#* ansible-config dump | grep COLLECTIONS_PATH* COLLECTIONS_PATHS(/etc/ansible/ansible.cfg) = [u' /usr/share/ansible/collections'] [root@ansible-kartel spectrum_virtualize]# pwd /usr/share/ansibl

[ansible-project] docker installation with ansible

2021-04-21 Thread rebecca acheampong
I am trying to install docker on one of my VMs on esxi, but i get this error my playbook is below the error PLAY [installing docker on ubuntu] * TASK [vmware_guest] ok: [localhost] => (item=

Re: [ansible-project] TTP parsing doesn't work in ansible, need assistance

2021-04-21 Thread Rajthecomputerguy
try removing quotes in stdout On Wed, Apr 21, 2021 at 3:34 PM Vikram S wrote: > > I wrote below script to parse output of 'sh flash:' however iam getting > blank output. > > I checked several examples and i seem to be following the format properly > yet doesn't work. What am i doing wrong? > >

[ansible-project] TTP parsing doesn't work in ansible, need assistance

2021-04-21 Thread Vikram S
I wrote below script to parse output of 'sh flash:' however iam getting blank output. I checked several examples and i seem to be following the format properly yet doesn't work. What am i doing wrong? *SCRIPT:* ios_command: commands: "show flash:" register: show_space name: Pass text and t

[ansible-project] Return type of community.general.hiera lookup plugin

2021-04-21 Thread coderfool
The value returned from this plugin is a bytes literal in Python 3 and a string literal in Python 2. For example, if there is a key "foo" with value "bar", Python 2 returns 'bar' (string) while Python 3 returns b'bar' (b' ' for bytes). This happens because the plugin uses the ansible.utils.cm

[ansible-project] customer kms key assign to volume

2021-04-21 Thread Jayesh Mahajan
Dear Tean, I want to encrypt my EBS volume with KMS for that I used the below task. - ec2_lc: name: "{{ childtenantname }}-iqb-{{ ami_name }}-{{ ansible_date_time.epoch }}" image_id: "{{ ami_facts.images[0].image_id }}" key_name: "{{ envrn }}-{{ region }}-eks" security_groups: "{{ envrn }}-iqbot"

[ansible-project] Inventory script v17

2021-04-21 Thread Jaime Jaca
In version 17 of AWX it does not allow creating custom scripts, therefore, I am trying to create it in git and configure the git project as the inventory source, but when configuring it in AWX it does not display the scripts that I have in the project from git. -- You received this message bec