Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread David Rivera
Hi I actually did edit my original post yesterday with everything I am doing. it is basic stuff, but since I have never really used Ansible much but for a few adhoc tasks, it is just all I know. Anyways, I was able to figure out how to create a bucket. doing this: now this is not using roles.

Re: [ansible-project] Ansible-variable containing double quotes changed

2020-02-17 Thread Angel Rengifo Cancino
Hello: On Mon, Feb 17, 2020 at 7:19 PM Barun kumar wrote: > > Hi Disk, > > More explanation about playbook, hope you did not chance to see that, > please check once. > > > > > > cat /tmp/volume.txt #Has list of disk attached to server, which needs > to excluded > > ["xvda", "xvdb", "xvdc",

Re: [ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Angel Rengifo Cancino
Hello: On Mon, Feb 17, 2020 at 8:36 AM Bala Mutyam wrote: > Hi all, > > Anisble Version: ansible 2.7.7 > > > I'm configuring auditd on centos7 but the auditd service is failing to > restart. > > Handler: > > - name: centos7 restart auditd > become: yes > command: service auditd restart > >

Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread Angel Rengifo Cancino
Hello: my role for learning is: s3-create.yml > - name: Create S3 Bucket > aws_s3: > bucket: my-bucket > mode: create > permission: private-read > region: us-east-1 > > This piece of code looks good. > my playbook: > key_name: my-key > vpc_subnet_id: subnet-02439 >

Re: [ansible-project] Does anyone have an Interesting Ansible demo idea for a talk?

2020-02-17 Thread Angel Rengifo Cancino
Not sure what type of company you work for, but it might be useful to show a demo of how you can automate some kind of process, which consists of several individual steps, through ansible playbooks and Ansible Tower workflows. You can focus on simple playbooks which do basic things and exchange

Re: [ansible-project] Re: win_update to upgrade windows 10 version

2020-02-17 Thread Ben Lagunilla
I upgraded Ansible and can now list 'upgrades' entries. Thanks! On Mon, Feb 17, 2020 at 10:16 AM Jordan Borean wrote: > I believe since Ansible 2.8 the 'category_names' option is a free form > field and you can specify whatever you want. Since that change it should > also be reporting all the

Re: [ansible-project] Ansible-variable containing double quotes changed

2020-02-17 Thread Barun kumar
Hi Disk, More explanation about playbook, hope you did not chance to see that, please check once. cat /tmp/volume.txt #Has list of disk attached to server, which needs to excluded ["xvda", "xvdb", "xvdc", "xvdd", "xvde", "xvdf", "xvdg", "xvdh", "xvdi"] # disk.yml disk_count.stdout:

[ansible-project] Does anyone have an Interesting Ansible demo idea for a talk?

2020-02-17 Thread Christopher Saunders
I am doing a 45-minute talk on Ansible and Ansible Tower to a large group of infrastructure people at my company. The audience is mixed, some know Ansible well, others may have only heard about it. I would like to develop an Ansible demo that I could start sometime early during my talk. Then

Re: [ansible-project] Doubt regarding loops and conditionals

2020-02-17 Thread Vladimir Botka
On Mon, 17 Feb 2020 20:11:07 + Nuno Jordão wrote: > - name: "test loop" > debug: > msg: "test" > loop: "{{nulo}}" > when: nulo is defined > > where "nulo" is an undefined variable. Here the task skips instead of > failing. Instead of testing whether the

Re: [ansible-project] Doubt regarding loops and conditionals

2020-02-17 Thread Mauricio Tavares
On Mon, Feb 17, 2020 at 3:11 PM Nuno Jordão wrote: > > Hello, > > I have a doubt regarding loops and conditionals that maybe someone can make > it clear to me. > In the documentation is stated that: > > "When combining Conditionals with a loop, the when: statement is processed > separately for

[ansible-project] Doubt regarding loops and conditionals

2020-02-17 Thread Nuno Jordão
Hello, I have a doubt regarding loops and conditionals that maybe someone can make it clear to me. In the documentation is stated that: "When combining Conditionals with a loop, the when:

Re: [ansible-project] Ansible Create vSphere Virtual Machine

2020-02-17 Thread David Foley
Ok I'm using just / as the folder seems to be bypassing that now but not sure what could be causing the following:: fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Failed to create a virtual machine : Unable to access the virtual machine configuration: Unable to access

Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread David Rivera
I’m sorry, I get it since you are just trying to help. Again sorry Thanks David On Mon, Feb 17, 2020 at 10:24 AM David Rivera wrote: > Hi, > > I do have AWS cli and boto3 installed as I use those almost on a daily > basis. > > Yes, > Thank you for the heads up on the s3 bucket, I just

Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread David Rivera
Hi, I do have AWS cli and boto3 installed as I use those almost on a daily basis. Yes, Thank you for the heads up on the s3 bucket, I just changed it in my post.. Thanks, David On Mon, Feb 17, 2020 at 10:15 AM Amit Kulkarni wrote: > Ansible supports S3 and all the operations supported by

Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread Dick Visser
I now see that the error you’re getting isn’t from the aws_s3 taks that you posted. Instead it’s from an ec2 task - that you did NOT provide. This is quite frustrating - next time provide ALL the information and not leave people in the dark please... Thx On Mon, 17 Feb 2020 at 06:56, David

Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread Amit Kulkarni
Ansible supports S3 and all the operations supported by S3 API. You have to make sure that you have access to AWS CLI and also install python boto. This is the framework used for calling AWS API via ansible. Also make sure that name you have giving to bucket should be unique when you are writing

Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread David Rivera
Hi, That was the weird thing. When I run it it gives me this error. ERROR! aws_s3 is not a valid attribute for a Play. This is the only reason why I started to try a different avenue.. Oh well.. Thanks David On Mon, Feb 17, 2020 at 2:33 AM Dick Visser wrote: > As you are beginning with

Re: [ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Cyril Stoll
Hi For the handler you have to explicitly state to use the "service" instead of "systemctl" command. For me it worked with a notify and a handler definition like so: - name: restart auditd systemd: name: auditd state: restarted use: service With that handler you can use "notify:

[ansible-project] Re: Ansible Create vSphere Virtual Machine

2020-02-17 Thread David Foley
> > When i Enter the virtualMachine Name _ Folder I'm getting the following > No Folder /TESTMACHINE match in search path.. -- 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

[ansible-project] Connecting Radware cli

2020-02-17 Thread rajthecomputerguy
Hi, Has anyone connected Cli of Radware(Loadbalancer device) using Ansible? Thanks, Raj -- 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

Re: [ansible-project] Ansible Create vSphere Virtual Machine

2020-02-17 Thread Dick Visser
On Mon, 17 Feb 2020 at 16:53, Jorge Rúa wrote: > > Try with : > folder: "{{ yourfolder | d ('/') }}" For everyone else that is wondering what the 'd' filter is, it's an alias for 'default' :) -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- You received this message

[ansible-project] Re: Ansible Create vSphere Virtual Machine

2020-02-17 Thread João Santos
Hi David It's a good pratice that you are able to identify uniqueness of the virtual machine and folder will help you to achieve that. You already have an answer before that might help you out to achieve what you're requesting (no folders). Nevertheless check here

Re: [ansible-project] Ansible Create vSphere Virtual Machine

2020-02-17 Thread Jorge Rúa
Try with : folder: "{{ yourfolder | d ('/') }}" El lun., 17 feb. 2020 a las 15:48, David Foley () escribió: > Ansible playbook fails to deploy Virtual Machine: Can't Find Folder > How can I deploy a Virtual machine without any Folders within the Cluster > ? > > --- > - name: Running Create

[ansible-project] Ansible Create vSphere Virtual Machine

2020-02-17 Thread David Foley
Ansible playbook fails to deploy Virtual Machine: Can't Find Folder How can I deploy a Virtual machine without any Folders within the Cluster ? --- - name: Running Create Virtual Machine Playbook hosts: localhost gather_facts: false connection: local tasks: -

Re: [ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Dick Visser
Then you should follow the advice given, i.e: See system logs and 'systemctl status auditd.service' for details. On Mon, 17 Feb 2020 at 15:54, Bala Mutyam wrote: > > Service module is also failing with the same error. > > fatal: [192.168.69.33]: FAILED! => {"changed": false, "msg": "Unable to

Re: [ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Bala Mutyam
Service module is also failing with the same error. fatal: [192.168.69.33]: FAILED! => {"changed": false, "msg": "Unable to restart service auditd: Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual

Re: [ansible-project] How to gather kernel parameters of remote hosts

2020-02-17 Thread Vladimir Botka
On Mon, 17 Feb 2020 14:47:19 +0100 Dick Visser wrote: > tasks: > - name: find out sysctl values > shell: sysctl {{ params | join(' ') }} > register: sysctl_out Optionally ask sysctl to print values only and set dictionary of the parameters and values. For example -

Re: [ansible-project] How to gather kernel parameters of remote hosts

2020-02-17 Thread Stefan Hornburg (Racke)
On 2/17/20 1:46 PM, Vikrant Agarwal wrote: > How to i collect remote hosts kernel parameters using ansible.  I'm looking > to below type collect info of remote hosts . > setup module doesn't collect this info .   > > And sysctl module is to edit , can i use  sysctl module just to list the >

Re: [ansible-project] How to gather kernel parameters of remote hosts

2020-02-17 Thread Dick Visser
Probably best done in one long cmd, for example: - hosts: all vars: params: - net.ipv4.ip_forward - net.ipv4.conf.default.rp_filter - net.ipv4.conf.default.accept_source_route - kernel.sysrq - kernel.core_uses_pid - net.ipv4.tcp_syncookies -

Re: [ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Bariou Alarou
Could you use the service module instead of command. Handler: - name: centos7 restart auditd service: name: audits state: restarted become: yes Also wanted to know how do you run your playbook because you defined as handler. On Mon, Feb 17, 2020 at 8:36 AM Bala Mutyam wrote:

Re: [ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Stefan Hornburg (Racke)
On 2/17/20 2:36 PM, Bala Mutyam wrote: > Hi all, > > Anisble Version: ansible 2.7.7 > > > I'm  configuring auditd on centos7 but the auditd service is failing to > restart. > > Handler: > > - name: centos7 restart auditd >   become: yes >   command: service auditd restart > > Error: > >

Re: [ansible-project] Ansible-variable containing double quotes changed

2020-02-17 Thread Dick Visser
Hi Barun You say "When I assign a variable containing double quotes to another variable" - what variable are you assigning to what other variable? What you post appears to be the output of a cmd task (I'm guessing, since you didn't post the original playbook, nor the task). That is JSON formatted

[ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Bala Mutyam
Hi all, Anisble Version: ansible 2.7.7 I'm configuring auditd on centos7 but the auditd service is failing to restart. Handler: - name: centos7 restart auditd become: yes command: service auditd restart Error: FAILED! => {"changed": false, "msg": "Unable to restart service auditd:

[ansible-project] How to gather kernel parameters of remote hosts

2020-02-17 Thread Vikrant Agarwal
How to i collect remote hosts kernel parameters using ansible. I'm looking to below type collect info of remote hosts . setup module doesn't collect this info . And sysctl module is to edit , can i use sysctl module just to list the parameters and not to modify anything ? net.ipv4.ip_forward =

RE: [ansible-project] Re: List of hosts by MacAdress + Connexion if computer is in standby

2020-02-17 Thread Stuart Lowe
I’d look into something like ddns getting your dhcp server to update dns for you Then you can use the machine hostname? Wake on LAN Etc From: ansible-project@googlegroups.com On Behalf Of Günter Zöchbauer Sent: 17 February 2020 12:02 To: Ansible Project Subject: [ansible-project] Re: List

[ansible-project] Re: List of hosts by MacAdress + Connexion if computer is in standby

2020-02-17 Thread Günter Zöchbauer
On Monday, February 17, 2020 at 10:46:49 AM UTC+1, Test Deux wrote: > > Hello, > > > I am considering using Ansible to achieve a certain goal, but as I get > more informed, I feel that Ansible may not be the right tool. Unless, > perhaps, I missed some information? > > > *Result sought:* > >

[ansible-project] Ansible-variable containing double quotes changed

2020-02-17 Thread Barun kumar
When I assign a variable containing double quotes to another variable the double quotes (") sometimes get converted to single quotes ('). .can you please suggest how to solve this. TASK [asm_pdb_disk_mapping : debug]

Re: [ansible-project] aws_s3 - not sure if I understand how to use

2020-02-17 Thread Dick Visser
As you are beginning with ansible, start with the simplest option, which is just a single playbook file, and don't bother with roles yet. Something like this should already work to create a bucket: - hosts: localhost gather_facts: False tasks: - name: Create S3 Bucket aws_s3:

[ansible-project] List of hosts by MacAdress + Connexion if computer is in standby

2020-02-17 Thread Test Deux
Hello, I am considering using Ansible to achieve a certain goal, but as I get more informed, I feel that Ansible may not be the right tool. Unless, perhaps, I missed some information? *Result sought:* Use Ansible to quickly install softwares on Ubuntu 18.4 computers in a computer room

[ansible-project] The Complete Guide to using AppViewX and Ansible for NetOps and DevSecOps Orchestration

2020-02-17 Thread Vidhya Kumar
Download the complete guide to using AppViewX and Ansible for NetOps and DevSecOps Orchsetration -- You received this message because you are subscribed to the Google Groups