[ansible-project] Bad coding practices in playbooks

2020-07-18 Thread Lucas Augusto Mota de Alcantara
Hello everyone! Recently, I've found an academic research about bad coding practices in infrastructure as code scripts which can lead to security issues. I found it interesting, but I notice that the practices the researchers pointed out aren't specific to infrastructure as code applications,

Re: [ansible-project] Ansible modules to pull info from checkpoint firewall

2020-07-18 Thread rajthecomputerguy
Hi Kethan, I am having same issue, Is this resolved? On Thursday, June 13, 2019 at 9:23:12 PM UTC+5:30, Kethan R wrote: > > no Luck. > > [WARNING]: sftp transfer mechanism failed on [x]. Use ANSIBLE_DEBUG=1 > 19 > to see detailed information > 20 > 21 > [WARNING]: No python interpreters

Re: [ansible-project] Help on snow_find_record module

2020-07-18 Thread Gajendra Gaikwad
Hello Visser, Thank you for your reply. I am looking for latest created ritm/data but output is too old k: 1/1 [localhost] => { "new_incident.record": [ { "sys_created_on": "2019-02-22 13:12:29" }, { "sys_created_on": "2019-09-06 14:30:55"

Re: [ansible-project] Help on snow_find_record module

2020-07-18 Thread Dick Visser
You forgot to mention two things 1. What did you expect 2. What was the output On Sat, 18 Jul 2020 at 20:59, Gajendra Gaikwad wrote: > Hello Team, > > I am trying to search records with order_by "+created_on" filter but > output is not as excepted :( > > snow_record_find: >

[ansible-project] Help on snow_find_record module

2020-07-18 Thread Gajendra Gaikwad
Hello Team, I am trying to search records with order_by "+created_on" filter but output is not as excepted :( snow_record_find: username: abc password: ** instance: abc table: service_request order_by: '+created_on' max_records: 5 -- You received

[ansible-project] Re: Create a file with static line and addtional lines based on configuration

2020-07-18 Thread Sven Probst
Hi, this could be done with a jinja-template: tasks: - name: Create cars.csv file copy: dest: /tmp/cars.csv content: | Brand,colour {% for item in cars%} {{item.brand}},{{item.color}} {% endfor %} (I used the inline version with copy, another

[ansible-project] Re: lineinfile using insertafter

2020-07-18 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Because I've got checks that applies the proxy based of which subnet the playbook runs on. On Friday, July 17, 2020, Stefan Hornburg (Racke) wrote: > On 7/17/20 10:21 PM, 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: >> Hey all, >> >> Trying to insert a line to multiple instances in

[ansible-project] Create a file with static line and addtional lines based on configuration

2020-07-18 Thread דודו דודו
Hi, I’m trying to run the following tasks using LineInFile, but I’m facing few issues Tasks : 1. 1. In case the file exists it should be deleted and recreated 2. 2. First-line should be static 3. 3. Next lines based on configuration 4. 4. Need to upload to

Re: [ansible-project] lineinfile using insertafter

2020-07-18 Thread S C Rigler
It would be a lot easier to accomplish this with the ini_file module instead of lineinfile. For example: - ini_file: path: /etc/yum.repos.d/zabbix.repo section: zabbix-non-supported option: proxy value: http://proxy:8080 On Fri, Jul 17, 2020 at 3:22 PM 'Chris Bidwell - NOAA