Hi there,
I'm using the win_updates module but the module fails to install any
updates.
- name: Install all security, critical, and rollup updates
block:
- win_updates:
category_names:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups
reboot: yes
I dont know much about python: How can i specify which version to use?
Which version should I set? I thought pyenv would handle this but it seems
broken?
| => sudo pyenv global
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/ba
You are confusing python3, pip3, and python2, pip. Plus of usng brew, you
have 2 versioons of python2 on your system. /usr/bin/python and
/usr/local/bin/python.
Make sure you have setup your paths and chosen the version and instance of
python you prefer to use.
michaels-MacBook-Pro:~ mpechner$
Environment variables are set for all modules, except raw (and maybe script
I can't remember). It is a mechanism done by Ansible before running the
module code.
Thanks
Jordan
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe
I am trying to create and ec2 instance from my Mac OSX machine.I
highlighted the failure in Yellow. I have installed boto and boto3 via pip
and there were no error messages on install.
| => pip3 list
Package Version
--- ---
boto2.48.0
boto3 1.7.
Ah, ok. I thought I needed to use win_shell, because of the need to set
environment variables. I see that's not the case, though. Thx.
On Tuesday, May 15, 2018 at 5:42:21 PM UTC-4, Jordan Borean wrote:
>
> No worries, I was just curious as to why it wasn't pipelining. The syntax
> you had the
Brian states things the way we define them.
I broke things up that way for a few reasons:
- Development process: Our dev team works in a similar fashion with their
code base, and objectifying the infrastructure Ansible is controlling in a
similar way lets the dev team use my Ansible work on thei
No worries, I was just curious as to why it wasn't pipelining. The syntax
you had there seemed good to me, the only thing I would recommend is to use
win_command instead of win_shell when calling the Python executable. The
win_shell module should be used to execute things in a shell interpreter
Ok, I think I'm going to pull back and work on upgrading both Python (to
2.7.5) and Ansible. We're 2.2.1.0, where the latter is concerned.
Thanks for your help, Jordan.
-Anthony
On Tuesday, May 15, 2018 at 3:42:29 PM UTC-4, Jordan Borean wrote:
>
> The main issue you have is that there is a co
The main issue you have is that there is a compatibility issue with pywinrm
0.3.0 and Pythoon 2.6 as shown here
https://github.com/diyan/pywinrm/issues/204. This is a controller side
issue and you either need to downgrade pywinrm to 0.2.2 or use Python 2.7,
3.5+.
Also what version of Ansible a
playbook => contains plays
play => maps hosts to tasks
roles => reusable content, can be vars, templates, files, tasks, etc
task => action to perform on a host
playbook does get overloaded as it is both an object and a file that
contains plays, but files that contain just tasks (task lists) ar
Hi all.
I'm having a problem with the URI module: in two different servers,
with different ansible versions, I get different output from the same
uri call. I'm taking some code from the uri module docs themselves,
like this:
```yaml
- name: create authentication cookie
uri:
url: "{{
I was reading the thread "VMware - convert template to virtual
machines" and when I saw Nick's structure I realized I do have a lot
to learn conceptually about ansible. Specifically having playbooks and
roles separated. I always thought that the tasks inside roles were
considered playbooks.
Ansible creates a sysprep/linuxprep script:
https://github.com/ansible/ansible/blob/3a6f0fbb9c698b9440f1c21c973822d1b8883124/lib/ansible/modules/cloud/vmware/vmware_guest.py#L1239
I have a lab with only static IPs and the networks parameter(s) work fine
for me when creating new/cloning.
On Frid
It looks to me like "num_cpus" is number of sockets, and
"num_cpu_cores_per_socket"
can set the cores per socket.
Is that what you're asking? or am I way off the mark... If you don't
specify "num_cpu_cores_per_socket", it defaults to 1, if I'm reading the
pyvmomi source correctly:
https://git
quotes!:
delegate_to: "{{ groups[v_grp] | random }}"
--
--
Brian Coca
--
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.
On 15.05.2018 17:51, 'deewon' via Ansible Project wrote:
Trying to do something that seems straightforward but can't work out
why
its failing.
I'm simply trying to pass a random server within a group whose name is
supplied at execution time to a task using "delegate_to" and
"--extra-vars" but
Hi, Posting a hypothetical.
Since my windows environment relies on a hosts file with addresses in said
file,
what do you do when your environment is dhcp? Like if the IPs keep
changing, whats to be done in the hosts file?
--
You received this message because you are subscribed to the Google G
Hi, just curious, when you run this , what do you get?
ansible -i (hosts path) -m ping
On Monday, May 14, 2018 at 7:25:49 AM UTC-7, Tcpip wrote:
>
>
> Hi all,
>
> ansible 2.4.0.0
> config file = /etc/ansible/ansible.cfg
> configured module search path =
> [u'/home/notebook/.ansible/plugins
do --extra-vars="v_grp=testgrp"
--
--
Brian Coca
--
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 p
Trying to do something that seems straightforward but can't work out why
its failing.
I'm simply trying to pass a random server within a group whose name is
supplied at execution time to a task using "delegate_to" and
"--extra-vars" but it doesn't like it i.e
delegate_to: {{ groups.v_grp
Thanks Sebastian
On Tue 15 May 2018 at 14:27, Sebastien Desbois
wrote:
> Hello,
>
> I will try to put it in a github
>
>
> Le vendredi 27 avril 2018 22:55:08 UTC+2, Ted a écrit :
>
>> Hi Sebastien,
>>
>> Thanks very much for the comprehensive reply. Would you be able to share
>> any of those scr
On my (winrm) target host, I am able to run the following:
PS C:\Users\agenerette> c:/Python27/python.exe
c:/xx/run/yy/tests/confluence_api_test.py
When I try to incorporate that into a playbook, however, I get a great
block of mostly encoded error output that I'm not able to make sense of.
Since I'm no longer going to try and run this via a script, I'd like to
close this topic and start another one.
On Monday, May 14, 2018 at 2:52:55 PM UTC-4, Ab Generette wrote:
>
> I have a CentOS7 control server from which I am trying to manage a few
> Server2012/Cygwin nodes. Those latter nod
Hi Sebastien, apologies for the delay.
I'm using the 'vmware_guest' module. From the documentation I've been
reading, it seems the 'network' actions have no effect on the VM itself as
those have to be assigned at the OS-level, not the VM-level. I don't
understand why the authors added that as
sorry .. correct module are given below with line number
35- name: "Copying and untar the S3 downloaded file"
36 unarchive: src:/ebsvol/OptiMaxAmigo/OptiMax/playbook/CD/omx-11.tar
dest:/ebsvol/OptiMaxAmigo/omx-11.tar
On Tuesday, 15 May 2018 19:27:20 UTC+5:30, Sumer Singh wrote:
>
> E
Hi ,
Can any one help to find the system error on unarchive module
--
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.c
- name: "Restore the backup config files"
copy: src=/ebsvol/BKUP/optimax.properties
dest=/ebsvol/OptiMaxAmigo/Optimax/config/optimax.properties mode=0777
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this g
ERROR! this task 'unarchive' has extra params, which is only allowed in the
following modules: command, win_command, shell, win_shell, script, include,
include_vars, include_tasks, include_role, import_tasks, import_role,
add_host, group_by, set_fact, raw, meta
The error appears to have been in
Hello,
I will try to put it in a github
Le vendredi 27 avril 2018 22:55:08 UTC+2, Ted a écrit :
>
> Hi Sebastien,
>
> Thanks very much for the comprehensive reply. Would you be able to share
> any of those scripts / playbooks you mentioned. I’ve no familiarity with
> powercli and have yet to d
Hi,
I have a task that executes a shell command and spews out a few lines.
Specifically, it probes a remote DB and and returns some information .
Please see below:
- name: Test role delegation to apps
hosts: appboxes
tasks:
- name: get cluster status from dbboxes
shell: mysqlsh -
I've done a bit of switching, ssh to winrm and back, again, while
troubleshooting this one.
There are just a number of things that have been getting run on these
hosts, from their consoles, in Cygwin: things like runs of those two Python
scripts. I'm trying just trying to automate that stuff.
i am trying to append a backslash between two string variables.
dc + '/' + item
this works fine. but what i need is backslash. i could not figure how to
insert a backslash. i have tried two backslashes, lot of other trial and
error but nothing works. can anyone please let me know what the issu
Hi together, managing a bigger project I am defining role dependencies in
role's
# meta.yml
- name: myrole
src: git+git@myserver/myrole.git
version: master
The problem is that ansible also *always* executes the dependencies *prior*
to the role,
some of the role dependencies should be
Please suggest how to do that.
Thanks
--
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, s
35 matches
Mail list logo