Re: [ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-10 Thread Stefan Hornburg (Racke)
On 12/9/19 10:30 PM, Mark Bolden wrote: > I am on Centos 7 and I was trying to install Pyrax and seeing these errors: > > ERROR: os-service-types 1.7.0 has requirement pbr!=2.1.0,>=2.0.0, but you'll > have pbr 1.10.0 which is incompatible. > ERROR: python-keystoneclient 3.22.0 has requirement

Re: [ansible-project] Using ignore_errors : yes in loop

2019-12-10 Thread Stefan Hornburg (Racke)
On 12/10/19 8:56 AM, Rahul Kumar wrote: > Hi Dick and Ansible gurus, > I want to continue to other items of loop even if any of the item is failed > in loop(probably we did not define that item > and because of that - item failed, in that case it should continue to > remaining items). How can we

Re: [ansible-project] Need help for ansible Junos module

2019-12-07 Thread Stefan Hornburg (Racke)
On 12/7/19 2:21 PM, Hitesh Kumar wrote: > Need Help : Getting error while running ansible playbook for Junos rpc > > atal: [vSRX-1]: FAILED! => {"ansible_facts": > {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, > "msg": "Unsupported parameters for (junos_rpc) module:

Re: [ansible-project] Montior bgp session for juniper routers

2019-12-06 Thread Stefan Hornburg (Racke)
On 12/6/19 10:08 AM, Hitesh Kumar wrote: > Hi  > I am looking for play book to monitor bgp sessions. > 1.log rpc output in json format. > 2run continously ansible playbook for 24*7 aftet an interval for 15 minutes. > > Regards > Hitesh Hello Hitesh, why don't you use a regular monitoring

Re: [ansible-project] Variable in Ansible Role

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/6/19 8:48 AM, Rahul Rawat wrote: > Hi, > > I have to parse variable in static PowerShell script which will copy through > win_copy module on target machine. > Means when file copy on target machine after running playbook it should have > values of those variable. > > I've keep variable

Re: [ansible-project] How to bypass a Linux server FID

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/5/19 3:55 PM, Deepanjan Acharya wrote: > I am stuck here in a case , i have couple of clustered App servers running > Weblogic on top of them.Servers are Linux > RHEL 7 and needs us to run "be fid" to access application locations i,e a > functional id.  > I am not able to bypass the same

Re: [ansible-project] Re: Testing Authentication with Ansible

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/5/19 3:20 PM, Adam wrote: > We've been experimenting using Selenium for things like this.  It's not > simple and will probably make your head hurt (it > makes mine hurt), but it is very flexible for things like this. There are numerous crawlers around that can be used for that task if you

Re: [ansible-project] Fwd: Ansible Tower installation problem - package not found

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/5/19 11:04 AM, Davide Scrimieri wrote: > > > > > Hello,  > I am writing as I have found no other solution online. > > I am trying to install a tower-setup-bundle (version 3.5.1) as the > installation process must happen offline. Hello Davide, please contact RedHat support. This list

Re: [ansible-project] Task Output import to SQL

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/4/19 11:00 PM, Ansible_USer2019 wrote: > Hi Group, > > i want to run several jobs. How can the JSON result stored in a database or > something like that to check what happened?  > I am not using tower or awx.  > > So do i need to pipe the output into a text file and run another script to

Re: [ansible-project] Ansible Tower and Akamai API

2019-12-04 Thread Stefan Hornburg (Racke)
On 12/4/19 4:16 PM, Garry Taylor wrote: > Hello, > We have been using Ansible Tower to purge website objects in Akamai cache > (Akamai is a CDN) for several years, using an > Akamai API > Akamai no longer provide the API version 2, and have forced customers to use > a new API version 3. > There

Re: [ansible-project] Install packages from a file where list all of packages that need to install to remote server.

2019-11-29 Thread Stefan Hornburg (Racke)
On 11/30/19 7:39 AM, Dick Visser wrote: > Also if you have that many packages and the length of the list is an issue, > you could consider leaving out the packages > that are dependencies of other packages. > I think it would be more efficient to pass all package names to apt instead of

Re: [ansible-project] The error was: 'inventory_dir' is undefined

2019-11-29 Thread Stefan Hornburg (Racke)
On 11/29/19 9:37 AM, zhengqis...@sohu.com wrote: > > ansible version: 2.7.4 > systemos : centos7 > > playbook: > - name: local init > hosts: localhost > tasks: > - name: test > debug: msg="{{ host_yum_repos_file_path }}" > > > inventory file: > [master] > 192.168.0.1 > > [all:vars] >

Re: [ansible-project] Ansible Version Migration

2019-11-27 Thread Stefan Hornburg (Racke)
On 11/27/19 10:47 AM, deva raju wrote: > Hi Stefan, > > > FYI >>> > > vars.yml > > apache_log_format: '\[%{%d\/%b\/%Y:%H:%M:%S}t\.%{msec_frac}t %{%z}t\]  %a  %h  > \\"%r\\"  ' > > - name: Standardize access log format >   shell:  >          sed -i '/LogFormat/c LogFormat "rev_proxy@{{

Re: [ansible-project] Ansible Version Migration

2019-11-27 Thread Stefan Hornburg (Racke)
On 11/27/19 10:05 AM, deva raju wrote: > Thanks Alicia for letting us know about maintained versions. > > But, While i'm upgrading my scripts from 1.5.3/2.1.1 to 2.9 , Some of the > expressions were not getting evaluated > successfully. > > I found that  "%{%d:%Y:%H:%m:%S}t" is not getting

Re: [ansible-project] Re: Need help to run my first ansible playbook

2019-11-27 Thread Stefan Hornburg (Racke)
On 11/27/19 5:29 AM, 'Richard' via Ansible Project wrote: > Thanks for your help Michael. > The playbook is working now but ran into a another error > > PLAY [Run Show Command] > > > TASK [run show command] >

Re: [ansible-project] import_playbook for a different host

2019-11-27 Thread Stefan Hornburg (Racke)
On 11/27/19 4:14 AM, Michael wrote: > Let's say i have host groups defined in my inventory file as follows: > > [group1] > serverA > > [group2] > serverB > > > and i have a playbook called existing.yml that has hosts variable defined for > host in group1: > > --- >  - hosts: group1 >   

Re: [ansible-project] How to convert o/p of ansible playbook to a proper readable format

2019-11-26 Thread Stefan Hornburg (Racke)
s meter when called from Ansible. Regards Racke > > On Tue, Nov 26, 2019 at 1:03 PM Stefan Hornburg (Racke) <mailto:ra...@linuxia.de>> wrote: > > On 11/26/19 8:25 AM, Rakesh Parida wrote: > > Hi Racke, > > Thanks for your suggestion > >

Re: [ansible-project] Need help in upgrading application using ansible in windows operating system

2019-11-25 Thread Stefan Hornburg (Racke)
On 11/26/19 6:46 AM, Shashidhar Reddy wrote: > please help :) > Sorry, but I don't think we are supposed to do your job for you. Start with a sample application installation and go from where. If you can show the playbook and its outcomes your chances are way higher to get help here ( not

Re: [ansible-project] How to convert o/p of ansible playbook to a proper readable format

2019-11-25 Thread Stefan Hornburg (Racke)
                                     ]         >                                           >                                              

Re: [ansible-project] How to convert o/p of ansible playbook to a proper readable format

2019-11-25 Thread Stefan Hornburg (Racke)
On 11/26/19 7:50 AM, Rakesh Parida wrote: > Hi , > > I have a role  for deleting VM using PWSH script via ansible : > --- > - name: Run PowerShellGet VM script >   delegate_to: localhost >   shell: pwsh /home/raka/delete-snapshot{{item}}.ps1 >   ignore_errors: yes >   changed_when: false >  

Re: [ansible-project] Need to filter with_items values based on specific string

2019-11-25 Thread Stefan Hornburg (Racke)
On 11/25/19 2:42 PM, Pandu jh wrote: > > I need to reject "none" value item in ping test task. It has to take only > "non- none" values from the with_items in the > task. >  Please help me to fix this. > >       - set_fact: >           linux_ip: "{{ item.stdout_lines[0] }}" >           unix_ip:

Re: [ansible-project] AWX Tower install failure (2 separate servers)

2019-11-21 Thread Stefan Hornburg (Racke)
On 11/21/19 3:48 PM, John James wrote: > Good Morning, > >    I am pretty new to Ansible, I had built an AWX Tower some months ago, but > had to let it sit.  Last week I started > working on it again when that instance got stuck in an upgrade loop.  I spent > a few days trying to reinstall and

Re: [ansible-project] How to convert json to csv

2019-11-20 Thread Stefan Hornburg (Racke)
he resulting JSON look like? I think it would be easier to convert the "interfaces_status_facts" straight away to CSV. Regards Racke > > > > > On Wednesday, November 20, 2019 at 4:40:51 PM UTC+5:30, Stefan Hornburg > (Racke) wrote: > > On 11/20/19 1

Re: [ansible-project] Ansible find module not accepting fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (find) module: become Supported parameters include: age, ag

2019-11-20 Thread Stefan Hornburg (Racke)
On 11/20/19 2:25 PM, Nasir Nasir wrote: > I want to access a directory  as sudo user of Linux when i gave  > > Below is the code for the same which i tried; > >      - name: Ansible delete files older than 1  minutes  example >        find: >          paths: '{{diskclrpath}}' >          age:

Re: [ansible-project] How to convert json to csv

2019-11-20 Thread Stefan Hornburg (Racke)
On 11/20/19 11:30 AM, rajthecomputerguy wrote: > Hi Team, > > Anybody knows how to convert json to csv in ansible? > > Thanks, > Pushparaj > What's your use case? I suppose you know you can't convert JSON with a nested structure to CSV? Regards Racke > -- > You received this

Re: [ansible-project] Probleme ansible with build Jenkins

2019-11-18 Thread Stefan Hornburg (Racke)
On 11/18/19 11:50 AM, Karther wrote: > Hey, > > I know it's a little bit gold but i have maven with component war with this > file pom : > > http://maven.apache.org/xsd/maven-4.0.0.xsd;> > 4.0.0 > workflow > Portal > ${version-prod} > war > Portal > > > And on my file

Re: [ansible-project] Could not find or access template file

2019-11-11 Thread Stefan Hornburg (Racke)
On 11/11/19 12:48 PM, morten hoffmann wrote: > hi > > I'm trying to setup a linux service on remote host > > I have my file in template folder > . > ├── group_vars > │   ├── artefacts_conf.yml > │   ├── jdk_wl_conf.yml > │   ├── configuration_conf.yml > ├── hosts > └── templates >     ├──

Bug#943874: pure-ftpd: pure-ftp error on upgrade

2019-11-09 Thread Stefan Hornburg (Racke)
On 11/7/19 10:46 PM, Guy Geens wrote: > Hello > > I also encountered this error. > > As far as I can see, the documentation (/usr/share/doc/pure-ftp) is > included in both pure-ftp and pure-ftp-common packages. > Hello, the build procedure for pure-ftpd is quite complex (different flavours

Re: [ansible-project] Docker+ansible

2019-11-02 Thread Stefan Hornburg (Racke)
compose file >       file: >        src: /root/DockerComposeFile >        dest: /root/DockerComposeFile >        mode: "0755" > >      - name: Run a docker compose file >        docker_service: >          project_src: "{{ compose_dir }}" >          sta

Re: [ansible-project] Docker+ansible

2019-11-02 Thread Stefan Hornburg (Racke)
On 11/2/19 1:28 PM, Sunitha Iyer wrote: > Hi Felix > > Thanks, I am struggling to find the syntax Hello Sunitha, search for "Ansible docker compose", this should provide enough examples to build upon. For specific help, post your playbook and the output and explain why you did it that way.

Bug#943874: pure-ftpd: pure-ftp error on upgrade

2019-11-01 Thread Stefan Hornburg (Racke)
On 10/31/19 8:54 AM, Antonio wrote: > Package: pure-ftpd > Version: 1.0.49-1 > Severity: important > > Dear Maintainer, > there is an error on pure-ftpd-common package when I try to upgrade pure-ftp > > Preparativi per estrarre .../pure-ftpd-common_1.0.49-1_all.deb... > Estrazione di

Re: [ansible-project] playbook hangs during shell commanf execution

2019-10-30 Thread Stefan Hornburg (Racke)
On 10/30/19 12:40 PM, Anup Kumar wrote: > Hi Team, > > Need help.. while executing the PB using awx it hangs during shell execution. > PB is for San zone creation. > > Thanks > Hello Anup, this list is for Ansible only, not for AWX or Tower. Also please get used to post sufficient

Re: [ansible-project] Best practice to test a playbook on a Docker image

2019-10-21 Thread Stefan Hornburg (Racke)
king with Red Hat Linux (RHEL) in a Vagrant Box" or just take a Vagrant box from their website. Disclaimer: I use only CentOS boxes, but it shouldn't be that much different. Regards Racke > > Le lundi 21 octobre 2019 17:29:16 UTC+2, Stefan Hornburg (Racke) a écrit : &g

Re: [ansible-project] Best practice to test a playbook on a Docker image

2019-10-21 Thread Stefan Hornburg (Racke)
On 10/21/19 6:20 PM, Julien Cochennec wrote: > Hi, Ansible Noob here. > > We're developing ansible roles and playbooks for production VMs which are > RHEL7 systems. > We can't test our playbook on those machines because they are dedicated to > another service. > So we only can test playbooks on

Re: [ansible-project] ansible +docker

2019-10-17 Thread Stefan Hornburg (Racke)
tVM >   tasks: >      - name: build docker image >        docker_image: >            name: xyz >            path: /var/dockertest > > > On Thursday, October 17, 2019 at 12:44:29 PM UTC+1, Stefan Hornburg (Racke) > wrote: > > On 10/17/19 11:45 AM, Sunitha Iyer wro

Re: [ansible-project] ansible +docker

2019-10-17 Thread Stefan Hornburg (Racke)
> /usr/lib/python2.7/site-packages (from > requests!=2.18.0,>=2.14.2->docker) (1.25.6) > Requirement already satisfied: certifi>=2017.4.17 in > /usr/lib/python2.7/site-packages (from > requests!=2.18.0,>=2.14.2->docker) (2019.9.11) > Installing collected package

Re: [ansible-project] ansible +docker

2019-10-16 Thread Stefan Hornburg (Racke)
On 10/16/19 8:07 PM, Sunitha Iyer wrote: > I am trying to run a play book from host(ansible VM) to pull an image from > docker host, I tried pip install docker still > it not working, can you please help. > > > failed to import the required python library (docker sdk for python: docker >

Re: [ansible-project] Variable value saving into one column of csv file

2019-10-16 Thread Stefan Hornburg (Racke)
On 10/16/19 11:27 AM, abhay srivastava wrote: > > Hi, > > I want to save 1st variable value coming from loop into 1st column  and 2nd > variable value coming from loop into 2nd > column and so on. > > - local_action: lineinfile line="{{ > result.results[item|int].container.Config.Hostname }}"

Re: [ansible-project] conditional statement and if it is true , it should accept yes and continue for next step if not then it should terminate

2019-10-14 Thread Stefan Hornburg (Racke)
On 10/14/19 11:47 AM, Manish Kumar wrote: > Hi All, > > I am trying to implement an conditional statement and if it is true , it > should accept yes and continue for next step if > not then it should terminate .  Below playbook is not reading vaue like what > we do in shell script with Echo

Bug#942172: clamav-daemon: After upgrade, clamd cannon create /var/run/clamav/clamd.ctl and stop.

2019-10-13 Thread Stefan Hornburg (Racke)
On 10/12/19 6:32 PM, Hugo Lefeuvre wrote: > Hi, > > I did not notice this bug during my tests. I have just tried to reproduce > it by upgrading a jessie system from 0.100.3+dfsg-0+deb8u1 to > 0.101.4+dfsg-0+deb8u1 and did not experience any issue restarting > clamav-daemon. > > Furthermore,

[Pkg-clamav-devel] Bug#942172: clamav-daemon: After upgrade, clamd cannon create /var/run/clamav/clamd.ctl and stop.

2019-10-13 Thread Stefan Hornburg (Racke)
On 10/12/19 6:32 PM, Hugo Lefeuvre wrote: > Hi, > > I did not notice this bug during my tests. I have just tried to reproduce > it by upgrading a jessie system from 0.100.3+dfsg-0+deb8u1 to > 0.101.4+dfsg-0+deb8u1 and did not experience any issue restarting > clamav-daemon. > > Furthermore,

Re: [ansible-project] /bin/bash output in ansible playbook as a conditional statement

2019-10-11 Thread Stefan Hornburg (Racke)
On 10/11/19 7:58 AM, Manish Kumar wrote: > > Dear All, > > Is it possible to get the output from .sh file and compare with "Apache > Tomcat/9.0.26" and if condition is true proceed > for next step ? > The condition in "when" is evaluated before running the task. You need an additional task

Re: [ansible-project] pip docker install

2019-10-04 Thread Stefan Hornburg (Racke)
On 10/3/19 7:42 PM, Alfredo De Luca wrote: > still doesn't work. everything I do the first time doesn't work and the > second time it does > > very very weird... Can you provide OS and release information about the target? Regards Racke > > > On Thu, Oct 3, 2019 at 7:52 AM P.

Re: [Courier-imap] IMAP error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO

2019-10-04 Thread Stefan Hornburg (Racke)
On 10/4/19 2:26 AM, Sam Varshavchik wrote: > PICCORO McKAY Lenz writes: > >> « HTML content follows » >> >> >> i setup using default values and get this in log files >> >> >> courieresmtpd: courieresmtpd: STARTTLS failed: couriertls: accept: >> error:1408A0C1:SSL >>

Re: [ansible-project] Ansible variables for multiple inventories

2019-09-27 Thread Stefan Hornburg (Racke)
On 9/27/19 12:38 PM, J F wrote: > Hello. > I have following host file: > | > [main:children] > group_1 > group_2 > [group_1:vars] > testvar='testval1' > [group_2:vars] > testvar='testval2' > | > > Running playbook below I am getting value 'testval1' > |group_2| > > Could, please, someone explain

Re: [ansible-project] Failed to install ansible tower on CentOS 7

2019-09-27 Thread Stefan Hornburg (Racke)
On 9/27/19 2:53 AM, Sunil wrote: > I'm new to Ansible. > > I am failed to install ansible tower due to awx-manage migrate.  Can some one > review and help me? > > ansible 2.8.4 > python  2.7.5 > ansible tower - 3.4.2.-1 ( i tired 3.4 version also, got same issue on that) Hello Sunil, this

Re: [ansible-project] SLES 15 SP1 SAet to Permissive Mode

2019-09-26 Thread Stefan Hornburg (Racke)
On 9/26/19 2:28 PM, Keith Mills wrote: > Why doesn't this have anything to do with Ansible? I'm trying to do this with > Ansible! I'm asking if there's a way to do > it within Ansible! How would I set up the Ansible task? Well if you can come up with a shell command that does what you want, we

Re: [ansible-project] Assign and print variable inside a with_items loop based on condition.

2019-09-25 Thread Stefan Hornburg (Racke)
367595418\n-rw-rw-r-- user2 2019-09-13 15:36 /fin/mrt/testingmrt.mrt > 1251350031\n-rw-rw-r-- user2 2019-09-13 15:37 > /fin/exe/testingexe.exe 1390265645\n-rw-rw-r-- user2 2019-09-13 15:38 > /fin/com/testingcom.com 90193476        > /fin/scripts\n/fin/mrt\n/fin/exe\n/fin

Re: [ansible-project] Assign and print variable inside a with_items loop based on condition.

2019-09-25 Thread Stefan Hornburg (Racke)
g": "Hello world!" >> } >> >>   >> >> TASK [debug] >> >> ******** >>

Re: [ansible-project] Assign and print variable inside a with_items loop based on condition.

2019-09-25 Thread Stefan Hornburg (Racke)
Racke > You can recreate the playbook output. > > On Wednesday, September 25, 2019 at 2:23:22 PM UTC+5:30, Stefan Hornburg > (Racke) wrote: > > On 9/25/19 10:44 AM, Mohtashim S wrote: > > @Stefan here is the output > > > > Sorry but there is no &quo

Re: [ansible-project] Assign and print variable inside a with_items loop based on condition.

2019-09-25 Thread Stefan Hornburg (Racke)
595418\n-rw-rw-r-- user2 2019-09-13 15:36 /fin/mrt/testingmrt.mrt > 1251350031\n-rw-rw-r-- user2 2019-09-13 15:37 > /fin/exe/testingexe.exe 1390265645\n-rw-rw-r-- user2 2019-09-13 15:38 > /fin/com/testingcom.com 90193476        > /fin/scripts\n/fin/mrt\n/fin/exe\n/fin/com   

Re: [ansible-project] Assign and print variable inside a with_items loop based on condition.

2019-09-25 Thread Stefan Hornburg (Racke)
On 9/25/19 9:58 AM, Mohtashim S wrote: > |   - debug: >        msg: "User was {{ item.split('\t')[3] }}" >      with_items: "{{ command_result.stdout_lines }}"| > > > The above give me the below output: > > "msg": "User was FrontEnd" > "msg": "User was BackEnd" > > > I now wish to set

Re: [ansible-project] How to trigger Ansible Play in a loop

2019-09-23 Thread Stefan Hornburg (Racke)
On 9/23/19 2:50 PM, Mohtashim S wrote: > command_result variable get database record while could be multi-line. > > The below helps me loop over each record of the database. > > | >    -debug: >        msg:"This is a database line: {{ item }}" >      with_items:"{{ command_result.stdout_lines

Re: [ansible-project] Ansible when condition check fails and does not behave as expected,

2019-09-23 Thread Stefan Hornburg (Racke)
On 9/23/19 12:22 PM, Mohtashim S wrote: > I'm expecting set_facts not to assign values to variables when the SQL query > does not yeild any results. > >  when condition  command_result.stdout == "" is meant for the same.  > > Below is my playbook. > > Hello Mohtashim, you need to use "when"

Re: [ansible-project] Pip install docker

2019-09-21 Thread Stefan Hornburg (Racke)
uld explain your problem with the first install. Regards Racke > > On Sat, Sep 21, 2019 at 1:15 PM Stefan Hornburg (Racke) <mailto:ra...@linuxia.de>> wrote: > > On 9/21/19 1:11 PM, Alfredo De Luca wrote: > > Hi all.  > > I installed python pip with an

Re: [ansible-project] Pip install docker

2019-09-21 Thread Stefan Hornburg (Racke)
On 9/21/19 1:11 PM, Alfredo De Luca wrote: > Hi all.  > I installed python pip with ansible then, in the same playbook, I use pip to > install docker-py libs but it keep saying  > *"Unable to find any of pip3 to use.  pip needs to be installed." > * > Then If I run the same playbook or if I

Re: [ansible-project] Ansible in virtualenv mixing python with os

2019-09-20 Thread Stefan Hornburg (Racke)
On 9/20/19 4:28 PM, Mr Decisive wrote: > Hi Stefan, > > Thanks for the info.  > > I'd tried putting  > > ansible_python_interpreter: /home//py3/bin/python > > in the ansible.cfg file in /etc/ansible/ but whilst it read the file as I > could tell from the -vvv switch I was still > seeing parts

Re: [ansible-project] Ansible register multiple variables within a single task

2019-09-17 Thread Stefan Hornburg (Racke)
policy: targeted debian: policy: default And in the task: policy: "{{ selinux_details[ansible_distribution|lower] }}" Disclaimer: not tested Regards Racke > > > > On Monday, September 16, 2019 at 8:31:16 AM UTC-5, Stefan Hornburg (Racke) > wrote: >

Bug#940505: pure-ftpd: TLS 1.3 support broken

2019-09-16 Thread Stefan Hornburg (Racke)
On 9/16/19 3:53 PM, Thomas Deutschmann wrote: > Source: pure-ftpd > Severity: grave > Justification: causes non-serious data loss > > Dear Maintainer, > > please consider disabling TLS 1.3 support. > > While you added TLS 1.3 compatibility through bug 918630, this uncovered > a grave bug in

Bug#940505: pure-ftpd: TLS 1.3 support broken

2019-09-16 Thread Stefan Hornburg (Racke)
On 9/16/19 3:53 PM, Thomas Deutschmann wrote: > Source: pure-ftpd > Severity: grave > Justification: causes non-serious data loss > > Dear Maintainer, > > please consider disabling TLS 1.3 support. > > While you added TLS 1.3 compatibility through bug 918630, this uncovered > a grave bug in

Re: [ansible-project] Firewalld fails to start on SLES 15 SP1

2019-09-16 Thread Stefan Hornburg (Racke)
On 9/16/19 8:28 PM, Keith Mills wrote: > Dear Readers, > > Firewalld fails to start for SLES 15 SP1.  > > | That's a pity, but how is this related to Ansible? Regards Racke > # systemctl status firewalld > ●firewalld.service -firewalld -dynamicfirewall daemon >    Loaded:loaded

Re: [ansible-project] Ansible register multiple variables within a single task

2019-09-16 Thread Stefan Hornburg (Racke)
On 9/16/19 3:23 PM, Keith Mills wrote: > Hello All, > > I have an Ansible task and I want to register multiple variables inside it, > how do I achieve this? It doesn't seem that > a list or a comma separated string would work. > > This is what I have: > > | > -name:SetSELinuxto permissive mode

Re: [ansible-project] Ansible Azure - azure_rm_image

2019-09-16 Thread Stefan Hornburg (Racke)
On 9/16/19 3:05 PM, Lucas Chies wrote: > Hello team, > I'm trying to use Ansible to create snapshot from my azure VMS. > But every time that I use the azure_rm_image, return error. > > ERROR! 'azure_rm_image' is not a valid attribute for a Play > > Someone already use this? > > Tks Please post

Re: [ansible-project] Ansible AWX/Tower configure with MS AD auth

2019-09-16 Thread Stefan Hornburg (Racke)
On 9/16/19 1:27 PM, Andrew Meyer wrote: > I have an instance of AWX setup and I am trying to configure it with MS > Windows AD authentication.  I am using the > docker setup of AWX.  1) Where should I be looking for logs to help diagnose > config issues?  2) Does anyone have an > example of how

Re: [ansible-project] Ansible installation of MongoDB - missing mongodb folder in /var/run

2019-09-16 Thread Stefan Hornburg (Racke)
On 9/16/19 9:59 AM, Stephen Thorpe wrote: > Hi, > > I'm deploying MongoDB to a number of servers using the script below.  Servers > are Ubuntu 18.0.4.   I have an issue where > the installation fails to create a mongo folder in /var/run/ and thus can't > start the service (No place to put the

Re: [ansible-project] Host Unreachable.

2019-09-09 Thread Stefan Hornburg (Racke)
On 9/9/19 3:32 PM, Naeem Khan wrote: > Hi Everyone, > I am getting the Connection issue with the given host using ansible, but > direct ssh is working fine with the host > 172.19.54.163. > can some one guide me where do i have to look the issue. > > on running the command *ansible all -m ping *

Re: [ansible-project] shell

2019-09-09 Thread Stefan Hornburg (Racke)
On 9/9/19 1:13 PM, Manish Kumar wrote: > Hi, > > Please help me with this error which I am getting below : > > play-book: > > --- > - name: Directory creation with current date >   hosts: local >   user: manish >   sudo: yes > >   tasks: > >   - name: Ansible fact - ansible_date_time >      

Bug#939636: Large lists sync_include lock problem

2019-09-07 Thread Stefan Hornburg (Racke)
package: sympa severity: important version: 6.2.40~dfsg-1 affects: 6.2.40~dfsg-2 tag: patch From https://github.com/sympa-community/sympa/issues/744: When instanciating a list by family (with sympa.pl), the task_manager take over the lock in sync_include. This happens with big lists (over

Re: [ansible-project] Ansible Tower installation getting failed.

2019-09-07 Thread Stefan Hornburg (Racke)
On 9/7/19 6:11 AM, Vivek Vijayan wrote: > Not sure what exactly. U meant to say the Ansible tower package?. I just > downloaded the bundled package.version 3.2. > > My server python version is 2.7.5 and ansible version is  2.8. > At any rate, this list is for Ansible only. Please contact

Re: [ansible-project] Hardening SSH With Ansible

2019-09-04 Thread Stefan Hornburg (Racke)
On 9/4/19 3:55 PM, Jon Adcock wrote: > I think its common practice to "harden" SSH by running the following in one > of your playbooks: > | > - name: Disallow root SSH access > lineinfile: > dest: /etc/ssh/sshd_config > regexp: "^PermitRootLogin no" > line: "PermitRootLogin no" > state: present >

Re: [ansible-project] Set SELinux to permissive mode and reboot.

2019-09-04 Thread Stefan Hornburg (Racke)
On 9/4/19 3:46 PM, Keith Mills wrote: > Hello All, > > I need to set SELinux to permissive mode and reboot. When I run my playbook I > get an error. > > Playbook: > > | > --- > -name:SetSELinuxto permissive mode. >   selinux: >     policy:targeted >     state:permissive >  

Re: [ansible-project] Re: Thoughts on Dynamic Variables

2019-09-03 Thread Stefan Hornburg (Racke)
On 9/3/19 3:28 PM, Cade Lambert wrote: > The problem I come across is I'll need logic to decide on the content of a > variable and that logic will turn into a long > string.  For example, when determining which users to add to a system, we > might have a variable like: > > user_list: "{{

Re: [ansible-project] chnaging all passwords on linux box

2019-08-31 Thread Stefan Hornburg (Racke)
On 8/30/19 6:59 PM, Andrew Morgan wrote: > Thank you for your answer. The vpn box is a simple openvpn server, so > changing the linux users password is simple. I > think I am having issues with how to export those values(username and > associated) password to a file. Is there an > example of

Re: [ansible-project] ansible error 'first argument must be string or compiled pattern'

2019-08-30 Thread Stefan Hornburg (Racke)
On 8/27/19 10:08 AM, Fae Az wrote: > I have this code in my playbook: > > |- hosts: standby remote_user: root tasks: - name: replace hostname in config > replace: path: /opt/agentd.conf regexp: > #\s+Hostname\= replace: Hostname={{hname}} backup: yes - name: add database > array in files

Re: [ansible-project] Need to set chrony.conf to server instead of pool!

2019-08-29 Thread Stefan Hornburg (Racke)
On 8/29/19 5:04 PM, Keith Mills wrote: > Hello All. > > I'm working with RHEL 8 and the ntp package is no longer supported and it is > implemented by the chronyd daemon which is > provided in the chrony package. My chrony.conf file: > > | > # Use public servers from the pool.ntp.org project. >

Bug#936020: /var/lib/dpkg/info/sympa.prerm: 33: [: =: unexpected operator upon removal

2019-08-29 Thread Stefan Hornburg (Racke)
On 8/29/19 9:49 AM, Olivier Berger wrote: > Package: sympa > Version: 6.2.40~dfsg-1 > Severity: normal > > Dear Maintainer, > > Upon removal of sympa (not purge), I got: > Suppression de sympa (6.2.40~dfsg-1) ... > /var/lib/dpkg/info/sympa.prerm: 33: [: =: unexpected operator > Conf sympa

Re: [ansible-project] No action Detected Error for localaction module

2019-08-29 Thread Stefan Hornburg (Racke)
On 8/29/19 8:35 AM, Mohtashim S wrote: > I'm getting the below error for my playbook. > > > ERROR! no action detected in task. This often indicates a misspelled > module name, or incorrect module path. > The error appears to be in '/app/test1.yml': line 12, column 7, but may > be

Re: [ansible-project] playbook errors when run through Ansible tower

2019-08-28 Thread Stefan Hornburg (Racke)
On 8/28/19 2:34 PM, Shashank Dutt Jha wrote: > I have a task like below: > >  name: start the service.  >   shell: "run some command" >   become: yes >   become_method: sudo >   become_user: "usera"  >   args: >     chdir: "/opt/ABC" > > And it works fine when I run using command >  

Re: [ansible-project] How to incorporate awk command in ansible shell module

2019-08-28 Thread Stefan Hornburg (Racke)
On 8/28/19 9:35 AM, Mohtashim S wrote: > Sorry for the missing quotes. It was a typo.  > > Thank you for the suggestion however, I'm compelled to use shell module. > Using command or script is not an option.  > > My actual playbook looks like this: > > | >     shell: "ls -ltr {{ BASEPATH }}/{{

Bug#935882: debian/config uses Invalid option -fqdn

2019-08-27 Thread Stefan Hornburg (Racke)
package: sympa The correct option for hostname is --fqdn. Regards Racke -- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration. Provisioning with Ansible. signature.asc Description: OpenPGP digital signature

Re: [ansible-project] Why is this telling me the variable is undefined?

2019-08-26 Thread Stefan Hornburg (Racke)
On 8/26/19 2:34 PM, Chrono 7 wrote: > I get an error stating: > > | > ERROR!noaction detected intask.Thisoften indicates a misspelled > modulename,orincorrect modulepath. > > Theerror appears to have been in'system_info.yaml':line 7,column 7,but may > be elsewhere inthe file depending on the

Re: [ansible-project] Re: Some user of ansible_user

2019-08-21 Thread Stefan Hornburg (Racke)
On 8/21/19 2:14 PM, Karther wrote: > Hey all !! > > Ok thanks very much community ansible for your help !! :) > > It's very pity that ansible not can play the same playbook on the same host > with different user ... > > Thanks very much for your help !! :) > > Regards, > > Karther I didn't

Re: [ansible-project] Re: Some user of ansible_user

2019-08-21 Thread Stefan Hornburg (Racke)
On 8/21/19 1:35 PM, Karther wrote: > Hey Mark, > > Ok for this issue, but my user of my environnement is different of my > ansible_user of my inventory_hostname. > > I have *my inventory host* with this content : > > my_host_1   ansible_user=wildfly > my_host_1   ansible_user=toto > > Ansible

Re: [ansible-project] Incorrect Sudo Password - For Ansible Remote Host Jobs

2019-08-16 Thread Stefan Hornburg (Racke)
On 8/16/19 11:19 AM, Kalyan Alamuru wrote: > I'm running Job through Job Template which have three tasks i.e. Gather Facts > on One Local Host(Where Tower is running > and Job is Initiated from) and two other remote hosts, For which connectivity > is working as I've tested in stand alone > mode. 

Re: [ansible-project] Why doesn't debug get me the output of these commands

2019-08-13 Thread Stefan Hornburg (Racke)
On 8/13/19 9:48 AM, Pro Va wrote: > Thanks for your response , if i run this command on email relay server > running postfix  > > " postmulti -i postfix-in-1 -p status " >> it gives me the following output > >> " postfix-in-1/postfix-script: the > Postfix mail system is running: PID: 8218 " >

Re: [ansible-project] How to escape doublequote and curly braces

2019-08-06 Thread Stefan Hornburg (Racke)
On 8/7/19 7:06 AM, Rakesh Parida wrote: > i want to have an output as follows: > > '{"components":"my_variable"}'      from my playbook. > > - name: Review the Joined List >       set_fact: >         jetty_c:  "{{ '\'{\"\components":"\' + my_joined_list + '"}'' }}" > > Its giving me error. >

[Check_mk (english)] MySQL plugin on Debian 10

2019-07-26 Thread Stefan Hornburg (Racke)
Hello, I added the MySQL plugin (mk_mysql) on a new host with Debian 10, but it failed even though the credentials in /etc/check_mk/mysql.cfg were correct. It turned out that the plugin tries to find out the MySQL socket by parsing the processlist, but on Debian 10 this doesn't work anymore:

Re: [ansible-project] Error in expansible script

2019-07-26 Thread Stefan Hornburg (Racke)
On 7/26/19 8:13 AM, Shahzad Adil shaikh wrote: > Hello All, > > I am trying to execute the following yml script but some errors are occurring > ,please some help me out this error .  > > Script:- > --- > - hosts: all >   tasks: >    - name: Import Remi GPG key >     rpm_key: "key={{ item }}

Re: [ansible-project] CPAN Modules

2019-07-25 Thread Stefan Hornburg (Racke)
ution HTTP::DAV ()\n"} > > failed: [ubuntu12ex6401] (item=SOAP::Lite) => {"ansible_loop_var": "item", > "changed": false, "cmd": "/usr/bin/cpanm > SOAP::Lite -n", "item": "SOAP::Lite", "msg": &quo

Re: [ansible-project] CPAN Modules

2019-07-25 Thread Stefan Hornburg (Racke)
ding XML::Parser > on search.cpan.org failed.\n--> Working on XML::Parser\nFetching > http://hCPAN2.sde.rdlabs.hpecorp.net/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz > ... OK\nConfiguring XML-Parser-2.44 > ... OK\nBuilding XML-Parser-2.44 ... FAIL\n! Installing XML::Parser failed. &

Re: [ansible-project] CPAN Modules

2019-07-24 Thread Stefan Hornburg (Racke)
t; On Wednesday, July 24, 2019 at 8:30:34 AM UTC-5, Stefan Hornburg (Racke) > wrote: > > On 7/24/19 3:01 PM, Keith Mills wrote: > > > >   Ansible playbook error:  > >   > > <https://stackoverflow.com/questions/53576865/ansible-playbook-erro

Re: [ansible-project] CPAN Modules

2019-07-24 Thread Stefan Hornburg (Racke)
On 7/24/19 3:01 PM, Keith Mills wrote: > > Ansible playbook error:  > > Failed > to find required executable cpanm in paths: >

Re: [ansible-project] String templating issue in lookup plugin command

2019-07-23 Thread Stefan Hornburg (Racke)
On 7/23/19 11:25 AM, MKPhil wrote: > > I've got a Playbook that uses a lookup plugin to retrieve a value but I seem > to have a string templating issue. > > This is my playbook: > > | > --- > -name:retrieve password >   hosts:localhost >   gather_facts:no > >   vars: >    

Re: [ansible-project] Need Help for Install/Upgrade/Downgrade

2019-07-22 Thread Stefan Hornburg (Racke)
e > On Mon, 22 Jul 2019 at 19:14, Stefan Hornburg (Racke) <mailto:ra...@linuxia.de>> wrote: > > On 7/22/19 1:04 PM, Rahul Kumar wrote: > > I want to use simple single task for install/upgrade/downgrade . All 3 > cases , I want to handle in on

Re: [ansible-project] Need Help for Install/Upgrade/Downgrade

2019-07-22 Thread Stefan Hornburg (Racke)
On 7/22/19 1:04 PM, Rahul Kumar wrote: > I want to use simple single task for install/upgrade/downgrade . All 3 cases > , I want to handle in one task: > Currently I use 2 tasks: > For Install: > - name: Install RPMs >   yum: >      name: '{{ rpm_list }}' >      state: 'latest' >      enablerepo:

Bug#932018: Use systemd unit file

2019-07-14 Thread Stefan Hornburg (Racke)
package: pure-ftpd severity: wishlist Marc Palau suggested to use unit files and provided the following example: [Unit] Documentation=man:pure-ftpd(8) Description=Pure-FTPd FTP server After=syslog.target network.target [Service] Type=forking PIDFile=/var/run/pure-ftpd/pure-ftpd.pid

Re: GSoC blog series

2019-07-01 Thread Stefan Hornburg (Racke)
On 7/1/19 10:59 AM, Shreyansh Shrivastava. wrote: > This is the third entry of the blog series. I cover the OOPs concepts of Perl > and the related syntax. This is a bit off > track when we think about SINGA (although inline with Spamassassin), but I'll > be covering SINGA in the subsequent

Re: [ansible-project] HOw to send email withe the Two register variables.

2019-06-12 Thread Stefan Hornburg (Racke)
On 6/12/19 8:43 PM, Raj Martha wrote: > Hi All, > > i am trying to send an one email after the playbook is done, but some how i > am getting the errors, i have tow tasks, and > the out put of that tasks i defined  as two set_facts, but some reason it is > not working if i use the two set-facts,

Re: [ansible-project] How execut script sql on port 1433

2019-06-11 Thread Stefan Hornburg (Racke)
On 6/11/19 2:16 PM, Ryad karkar wrote: > Hy, > > I have Ansible on my debian 8.11 and i have on script my_script.sql > > I have install tool mssql-cli and i can with this tool execut my_script.sql > on my database MSSQL. > > I have on server Windows  database MSSQL. > > I want that Ansible

Re: [ansible-project] Probleme mssql-cli on ansible

2019-06-05 Thread Stefan Hornburg (Racke)
On 6/5/19 3:11 PM, Ryad karkar wrote: > Hi all, > > When i want do "sudo apt-get update" on my debian 8.11, i have this error : > > E: Malformed line 1 in source list /etc/apt/sources.list.d/mssql-cli.list > ([arch] is not an assignment) > E: The list of sources could not be read. > > the next

<    3   4   5   6   7   8   9   10   11   12   >