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
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
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
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,
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:
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 }}"
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
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
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
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
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
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
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') }}"
-
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
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}}
^
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
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
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
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
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.
$
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
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,
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/
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
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]
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
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
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:
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
>
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
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
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.
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
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
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,
35 matches
Mail list logo