Re: [ansible-project] Is there free gui interface or easy way to check Ansible's log

2018-10-15 Thread Julian Kriel
Indeed, Look into AWX - Its Ansible tower open source project. Great management platform On Tue, Oct 16, 2018 at 8:20 AM Shlomit Afgin wrote: > Hi, > > I'm in a middle of building Ansible on our system. > I would like to run it every day to check few servers. > Is there any good way to follow

[ansible-project] Is there free gui interface or easy way to check Ansible's log

2018-10-15 Thread Shlomit Afgin
Hi, I'm in a middle of building Ansible on our system. I would like to run it every day to check few servers. Is there any good way to follow the Ansible's logs to check failed? Is there any free GUI I can use with Ansible? The Ansible's run give output and I want to get also only the proble

[ansible-project] include_role with passed variable defined by template fails

2018-10-15 Thread Dmitriy Panteleyev
I'm a bit confused how variables are defined when using `include_role`. A basic example follows. */play.yml* - hosts: localhost roles: - one */roles/one/tasks/main.yml* --- - name: do a thing with another role include_role: name: two vars: passed_variable: - stuff: "{{ l

[ansible-project] Unable to Sync all the instances from the AWS to the Ansible Tower

2018-10-15 Thread Vishakh
I have around 30 Server Instances in AWS all having only the Private IP. In the ansible tower, I have used AWS access key and secret key and thus configured the credentials in the tower. When I start creating a new inventory, i fill all the necessary params in the inventory sources and then I sy

Re: [ansible-project] YAML line breaks (newlines) when performing lookups of files or templates

2018-10-15 Thread Dmitriy Panteleyev
Thanks for the insight. Turns out the problem is in one of Ansible's modules, not the formatting of the lookup result. On Monday, October 15, 2018 at 10:10:36 AM UTC-6, Kai Stian Olstad wrote: > > On Saturday, 13 October 2018 18.37.22 CEST Dmitriy Panteleyev wrote: > > I've been banging my he

Re: [ansible-project] not able to install program

2018-10-15 Thread Ronnie10
Hi Jonathan, Yes I have added inventory, I can do ping with ansible without any issue. After trying, I notice it has to be passwordless sudo user then only I can run adhoc ansible command such as $ansible all -a 'sudo yum install git -y', or create a playbook with the following content: ---

Re: [ansible-project] Re: AWS_EC2 plugin keyed_groups suffix option

2018-10-15 Thread Guy Knights
Great, thanks! That seems to have worked. One other question related to aws_ec2 - I usually pass the AWS_PROFILE var on the command line when I call ansible, eg. "AWS_PROFILE=myawsprofile ./ansible-playbook -i inventory/prod/ playbooks/site.yml". However, with my aws_ec2 inventory file, if I leave

[ansible-project] Re: AWS_EC2 plugin keyed_groups suffix option

2018-10-15 Thread flowerysong
On Monday, October 15, 2018 at 7:45:15 PM UTC-4, Guy Knights wrote: > > Is there any way to specify a suffix for the keyed_groups option in the > aws_ec2 inventory plugin? I'm looking at migrating from Ansible 2.4 to 2.6 > and would like to switch from the old ec2 dynamic inventory script. > How

[ansible-project] AWS_EC2 plugin keyed_groups suffix option

2018-10-15 Thread Guy Knights
Is there any way to specify a suffix for the keyed_groups option in the aws_ec2 inventory plugin? I'm looking at migrating from Ansible 2.4 to 2.6 and would like to switch from the old ec2 dynamic inventory script. However, we currently specify our host groups as "_servers", eg. "web_servers".

[ansible-project] shut unused cisco switch interfaces

2018-10-15 Thread Ahmed Aljawad
Is there is any way i can loop on all the devices interfaces and shut all the Down Down ports ? -- 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-proj

Re: [ansible-project] Trying to copy script from local to remote and run

2018-10-15 Thread Kai Stian Olstad
On Thursday, 11 October 2018 22.30.13 CEST 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > cat check_for_reboot.yml > --- > - name: Check for reboot > hosts: testserver > become: yes > > vars_files: > - passwd.yml > - vars.yml > > vars: > script_dir: "/home/tsg/sc

Re: [ansible-project] YAML line breaks (newlines) when performing lookups of files or templates

2018-10-15 Thread Kai Stian Olstad
On Saturday, 13 October 2018 18.37.22 CEST Dmitriy Panteleyev wrote: > I've been banging my head against this for two days. Maybe I'm missing > something. When fetching a YAML file or template with lookup function, all > the newlines are not preserved, but converted to '\n'. They are not conve

[ansible-project] Difference in ec2 module and ec2_instance module.

2018-10-15 Thread Madushan Chathuranga
Hi All, What is the difference between ec2 module and ec2_instance module. Why there are two modules to create an ec2. https://docs.ansible.com/ansible/2.5/modules/ec2_instance_module.html https://docs.ansible.com/ansible/2.5/modules/ec2_module.html

Re: [ansible-project] not able to install program

2018-10-15 Thread Jonathan Lozada De La Matta
did you add the inventory to etc/ansible/hosts? On Mon, Oct 15, 2018 at 12:52 AM Ronnie10 wrote: > Hi there, > > I am new to ansible, and trying to install httpd using ansible in my test > setup. > > My control machine is Mac, the test server is Centos, I have created user > with passwordless su

[ansible-project] Re: Ansible playbook for host rebooted and started unexpectedly and send an alert

2018-10-15 Thread Brad Van Orden
Not sure that is really an ansible task. I'm sure you could use ansible to set it up. I use this on my systems to get notification: cd /etc/systemd/system if [[ ! rebootsh.service ]]; then cat > rebootsh.service << EOF [Unit] Description=Notify sys admin when the server gets rebooted After=n