[ansible-project] Re: vmware tagging

2017-05-25 Thread Robert Foreman
It looks like tagging may only be possible via the vSphere Automation SDK for Python not pyVmomi. On Thursday, May 25, 2017 at 11:57:11 AM UTC-4, Robert Foreman wrote: > > Is it possible to manage vmware tags, either tags themselves and/or tag > assignments for resources, using Ansible? It

[ansible-project] Ansible Hands-On Beginners Tutorial

2017-05-25 Thread Mumshad Mannambeth
Hi, I just authored a free hands-on course on Ansible at Udemy. Please check it out and let me know your thoughts. The course consists of some lectures for introducing the absolute beginner to Ansible and coding exercises that user can practice live in the browser without requiring an actual

Re: [ansible-project] Re: Can some one share the playbook for F5 BIGIP traffic enable/disable

2017-05-25 Thread Tim
Here's an example Siva of doing what you asked about. https://github.com/F5Networks/f5-ansible/blob/devel/examples/pool-member-enable-disable.yaml hope that helps, -tim On Thu, May 25, 2017 at 3:37 PM, Tim wrote: > Siva, > > The example you linked to is for the node

Re: [ansible-project] Re: Can some one share the playbook for F5 BIGIP traffic enable/disable

2017-05-25 Thread Tim
Siva, The example you linked to is for the node documentation of an unreleased F5 module. For future reference for anything that you find or get from " f5-ansible.readthedocs.io", I would advise that you open a Github issue at F5's repository here https://github.com/F5Networks/f5-ansible Now,

[ansible-project] Re: Can some one share the playbook for F5 BIGIP traffic enable/disable

2017-05-25 Thread Siva-Ansile
I have tried the below to disable the LTM pool member using the play book as below, But getting the error. Playbook:- --- - name: Force pool member offline hosts: test connection: local tasks: - name: Force pool member offline bigip_pool_member: server:

[ansible-project] use vars from include_role

2017-05-25 Thread Michael Ströder
HI! I want to use the following task (with ansible ansible-2.3.1.0-0.2.rc2): - name: "Install web2ldap on {{ openldap_role }}" include_role: name: web2ldap private: False vars: web_server: "apache2" web2ldap_pip_index_url: "{{ aedir_pip_index_url }}"

Re: [ansible-project] ansible 2.2.1.0 and Jinja2 2.9.5

2017-05-25 Thread Michael Ströder
Mirko Friedenhagen wrote: > I would always recommend to take the virtualenv approach for non-trivial > python > software. In this particular case it's not a matter of whether to use virtualenv or not or whether disk space is wasted. The real issue is the need for version pinning which

Re: [ansible-project] Cisco asa auth option

2017-05-25 Thread Kai Stian Olstad
On 24. mai 2017 10:40, Adrian Tolley wrote: Hi, I have the follow basic playbook for a Cisco IOS router, running ansible 2.3 --- - hosts: ios_routers connection: local tasks: - name: run show version ios_command: commands: show version I run the playbook like

Re: [ansible-project] Ansible Yum module to install multiple RPMs from local filesystem

2017-05-25 Thread Kai Stian Olstad
On 24. mai 2017 00:59, SatIng wrote: I am trying to install Libreoffice using ansible yum module Downloaded from https://downloadarchive.documentfoundation.org/libreoffice/old/4.4.1.2/rpm/x86_64/LibreOffice_4.4.1.2_Linux_x86-64_rpm.tar.gz Extracted and all libreoffice rpms kept at

Re: [ansible-project] Ansible Jinja Templating For issue - Help :)

2017-05-25 Thread Kai Stian Olstad
On 24. mai 2017 00:09, Owen Corcoran wrote: Thanks that fixed it . Can you tell me why you can't use them . Just so I know for future reference. When you are inside {% %} block, you are in Jinja mode, and in Jinja variables is used only by it's name. When you are outside of {% %} you need

Re: [ansible-project] Struggling with optional arguments to a playbook

2017-05-25 Thread Brian Coca
you are still stacking: ssh_public_key: "{{ lookup('file', '{{ keyfile }}') }}" should be: ssh_public_key: "{{ lookup('file', keyfile) }}" -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] ansible 2.2.1.0 and Jinja2 2.9.5

2017-05-25 Thread Mirko Friedenhagen
Hello Michael, I would always recommend to take the virtualenv approach for non-trivial python software. The same principle is used for e.g. WARs or take a look at docker-compose, they even bundle Python itself. Wasting 30MB disk space is nothing compared to the effort needed to align every

Re: [ansible-project] Struggling with optional arguments to a playbook

2017-05-25 Thread Martin Brooks
Thanks for that. I eventually managed to get it working via this method: --- - hosts: all tasks: - set_fact: username: "{{ username | default(ansible_user_id) }}" - set_fact: keyfile: "{{ keyfile | default('/home/' + username + '/.ssh/id_rsa.pub') }}" -

[ansible-project] Re: Task launch playbook with variables and --limit

2017-05-25 Thread Pierre Mavro
Hi Jon, Thanks for the answer but it's not dynamic, as I said, I don't know in advance which will be the servers where the playbook should run on. Any idea ? Thanks Le jeudi 25 mai 2017 15:39:24 UTC+2, J Hawkesworth a écrit : > > How about you add server1 and server2 to a group in your

Re: [ansible-project] Struggling with optional arguments to a playbook

2017-05-25 Thread Brian Coca
rule #1 of templating: moustaches do not stack! you cannot have {{ }} inside {{ }}. rewrite as: username: "{{ username if username is defined else ansible_user_id }}" or username: {{ username|default(ansible_user_id) }} or vars_prompt: name: username default: "{{ansible_user_id}} ^

[ansible-project] vmware tagging

2017-05-25 Thread Robert Foreman
Is it possible to manage vmware tags, either tags themselves and/or tag assignments for resources, using Ansible? It looks like the vmware_guest module has customvalues for key value pairs, but that's not quite the same thing as tags. -- You received this message because you are subscribed to

[ansible-project] Blockinfile looping overwrites even though the marker is differnent

2017-05-25 Thread rcst . eoin . kim
Hi all, I am trying to insert a block of lines via Blockinfile module and it is overwriting the previous change even though I am using different marker. I have configured the code like below: -- - name: update zones on master nodes blockinfile: dest: /etc/icinga2/zones.conf

[ansible-project] error message

2017-05-25 Thread Daley Okuwa
hello when i try to run this command ansible all -i hosts -s --sudo -m ping I get this error message 192.168.85.129 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true Please

[ansible-project] msg: hostname module cannot be used on platform Linux (Neon)

2017-05-25 Thread Emmet Ryan
I recently upgraded to Ansible 2.3 for KDE Neon support and ran into the following failure when running a playbook against it: msg: hostname module cannot be used on platform Linux (Neon) And this is the task it failed on: - name: set hostname hostname: name: "{{ host }}" Has

[ansible-project] Cisco asa auth option

2017-05-25 Thread Adrian Tolley
Hi, I have the follow basic playbook for a Cisco IOS router, running ansible 2.3 --- - hosts: ios_routers connection: local tasks: - name: run show version ios_command: commands: show version I run the playbook like this so it prompts me for the password. $

[ansible-project] Re: Unable to source a script?

2017-05-25 Thread guodongggg
thx ,it worked! 在 2016年12月12日星期一 UTC+8下午11:11:36,Jitendra Bhalothia写道: > > > Hi People, > > You have to define the executable path. > > - name: for source command > command: source /home/ubuntu/.bash_profile executable=/bin/bash > > -- You received this message because you are subscribed

[ansible-project] Co-life of Cloud Instances and Ansible Users

2017-05-25 Thread Soujanya Naganuri
I simply have solved one small inconvenient difficulty I were traumatic approximately for a while. after I create a new instance, there may be a unique ‘cloud’ user. On maximum distribution username is about to distro call: ‘ubuntu’ for Ubuntu, ‘debian’ for Debian, ‘centos’ for Centos,

[ansible-project] Ansible Yum module to install multiple RPMs from local filesystem

2017-05-25 Thread SatIng
I am trying to install Libreoffice using ansible yum module Downloaded from https://downloadarchive.documentfoundation.org/libreoffice/old/4.4.1.2/rpm/x86_64/LibreOffice_4.4.1.2_Linux_x86-64_rpm.tar.gz Extracted and all libreoffice rpms kept at /home//LibreOffice_4.4.1.2_Linux_x86-64_rpm/RPMS/

[ansible-project] Re: "kerberos: (u'http', u'Bad HTTP response returned from server. Code 500'), plaintext: the specified credentials were rejected by the server"

2017-05-25 Thread Kamran Ayub
Just got done configuring some Windows hosts with Ansible Tower. - Use port 5986 because AllowUnencrypted=False will prevent 5985 from working (for good reason!) w/ Kerberos - Use a certificate on 5986, I noticed your CertThumbprint is missing - Ensure 5986 firewall port is open - Test

[ansible-project] msg: hostname module cannot be used on platform Linux (Neon)

2017-05-25 Thread Emmet Ryan
Has anyone else run into issues using the hostname module on KDE Neon hosts? I recently updated to 2.3 which introduces Neon support. This is the task: - name: set hostname hostname: name: "{{ host }}" and the resulting output: TASK [workstations/common : set hostname]

[ansible-project] Role cannot be found

2017-05-25 Thread oscar Medina
Hi Everyone, Quick question; I have my project structure as shown below. I am trying to ensure the *Ansible Vagrant Provisioner* runs, but I keep getting this error, any ideas? When I execute "ansible-playbook" command from the Plays folder, this does work

[ansible-project] InvalidAMIID.Unavailable: The image ID 'ami-XXXXXXX' is no longer available

2017-05-25 Thread Radhika Karthik
The following lines of code is not working in Ansible version 2.3. Same code works fine in ansible version 2.0.0 If dm_ami-AMI ID already exists, ansible throws below error "msg": "Image ami-957313f5 does not exist" If dm_ami-AMI ID doesn't exist, ansible throws below error "msg": "The

[ansible-project] Struggling with optional arguments to a playbook

2017-05-25 Thread Martin Brooks
Hello I have a simple playbook that distributes my SSH key. I tried to make a more generic version of the playbook that would accept arguments via -e so that the same playbook could distribute either a different key or a key for a different user. This is what I have so far: --- - hosts:

[ansible-project] Re: Ansible tower setup failure

2017-05-25 Thread James Poplawski
I had to create /var/log/tower. Reran and found it errored out, but then I was able to look in the log file. My VM had insufficient RAM. HTH On Monday, August 29, 2016 at 8:24:57 AM UTC-6, Utsav Kumar wrote: > > I downloaded the war file for ansible, and after changing the passwords in >

[ansible-project] Hardening guideline for Ansible itself

2017-05-25 Thread Pawel
Hi, I'm looking for best practices describing how to harden Ansible installation itself. Unauthorized access to Ansible host can do a lot of harm to the organization especially if someone could get access to playbooks or keys used by Ansible. The question is how to protect Ansible

[ansible-project] Can't find documentation on including relative modules

2017-05-25 Thread Kamran Ayub
I'm fairly new to Ansible and noticed while looking at some OSS modules that you can include them relative to the Playbook file in a *library* folder. However, I scoured the docs and couldn't find a reference to this (at least, not in obvious places!). I found a GH issue and left a comment

[ansible-project] Blockinfile first loop is not written

2017-05-25 Thread rcst . eoin . kim
Hi all, I am having problem with looping Blockinfile module. It seems as if the first loop doesn't insert a new block into the target file. When I run the playbook the log shows that new block is inserted but it actually doesn't exist. When I run the same playbook again, the block is inserted.

[ansible-project] Re: Task launch playbook with variables and --limit

2017-05-25 Thread 'J Hawkesworth' via Ansible Project
How about you add server1 and server2 to a group in your inventory - something like this [application_servers] server1 server2 and then change sites/playbook.yml so it does hosts: application_servers instead of hosts: all If you want to run the same playbook on different server

Re: [ansible-project] ansible 2.2.1.0 and Jinja2 2.9.5

2017-05-25 Thread Michael Ströder
Alan Orth wrote: > Yeah, definitely issues between those two. See some issue reports on > GitHub, for example: > > https://github.com/ansible/ansible/issues/20063 Any news on that? The bug above is labeled "affects_2.3" and there's no milestone defined yet. I'm asking because the Linux distros

Re: [ansible-project] Re: wait_for using bastion host

2017-05-25 Thread 'Ansible Madness' via Ansible Project
Many thanks, this sorted out my issue! -- 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-project+unsubscr...@googlegroups.com. To post to this group,