[ansible-project] Re: Debian/Ubuntu: Show available updates (or control if all updates are installed)

2016-02-12 Thread Tobias Wolf
For one thing, once my apt module pull request #2944 gets merged you can use « --check --diff » to see the list of packages to be upgraded. On Thursday, February 11, 2016 at 8:10:56 PM UTC+1, Johannes Kastl wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, > > is it

[ansible-project] Re: How to make symbolic links in windows via Ansible ?

2016-02-12 Thread ishan jain
Hi Jon, I am using windows server 2012 R2. Disabling UAC doesn't seem like a good idea, specially with my automation scripts on a regular basis. I am connecting via admin account obviously but that doesn't seem to be enough for making a symlink. I will have to start a command shell using 'Run

[ansible-project] Will bugfix #12062 be backported to ansible 1.9.x?

2016-02-12 Thread nusenu
Hi, I'm running ansible 1.9.4 (released in Oct 2015) and am hitting a bug that has been fixed in August 2015, but the fix is apparently in ansible 2.0 only. Manually applying the fix to my 1.9.4 installation resolves the problem. Will this bugfix be backported? thanks!

[ansible-project] Re: Running NSSM from copied executables on windows and avoid installing NSSM

2016-02-12 Thread ishan jain
Thanks Joe, I tried using the raw module but the problem i am facing is that NSSM requires admin level privileges to start/stop services. How can i enable 'Run as admin' level while passing a command in NSSM ? My windows machine do not have a pre installed NSSM and thus i cannot create a

[ansible-project] Re: group_vars produces error

2016-02-12 Thread Sascha Andres
When switching to root it works, using a user having sudo rights with NOPASSWD it does not work On Wednesday, February 10, 2016 at 3:27:46 PM UTC+1, Sascha Andres wrote: > > Hello, > > I have two machines both running ansible 2.0.0.2 on Ubuntu 14.04.3 LTS. On > one machine ( my work machine ) >

Re: [ansible-project] Re: group_vars produces error

2016-02-12 Thread nusenu
Sascha Andres: > When switching to root it works, using a user having sudo rights with > NOPASSWD it does not work did you specify 'become: yes' (for the sudo case)? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] Re: Powershell Script playbook no running on servers

2016-02-12 Thread Mark Matthews
Hi Jon I made sure the UAC was disabled on all servers, also went through the event viewer on the servers and there are no errors at all. I ran the playbook with - and got the out put below. From what I can see there is nothing to indicate why the script isnt running? Can you see

[ansible-project] Provisioning JBoss EAP with Ansible

2016-02-12 Thread fmarchio
Hi all, we have a customer that has built a custom framework in Python to provision installations of JBoss EAP. The installation are provisioned by means of JBoss EAP Command Line Scripts and file system operations. I'd like to evaluate Ansible as a replacement, however I'm totally new to

[ansible-project] difference in "ansible PATH" & "server-side PATH"

2016-02-12 Thread 'TheUnseen' via Ansible Project
Hi there, I'm pretty new to ansible and trying to install rvm threw its official role system-wide. Through installation process I came across a "rvm command not found" error, which (thru further diggin) brought me to the following question: How come, that my PATH differs, depending if I ask

Re: [ansible-project] are there ansible branches or configurations for python 3?

2016-02-12 Thread Brian Coca
No special py3 branch, we are incrementally updating the development branch to add py3 compatibility. Sadly we are not there yet, we do take PRs that help in this respect. Keep in mind that modules and module shared code (module_utils) must still be 2.4 compatible and the main Ansible executables

[ansible-project] are there ansible branches or configurations for python 3?

2016-02-12 Thread Benjamin Golder
I'm new to ansible and naively installed ansible in a python 3 virtualenv. While running one of the first commands in the "Getting Started" documentation: ansible all -m ping -vvv I ran into an error with ansible 2.0.0.2's use of "basestring", just like this stackoverflow user:

[ansible-project] Need to find out all the commands that ansible is actually running

2016-02-12 Thread Chintan Sheth
I need to get sudoer whitelist for all the commands that ansible is running, is there any way which I can list them? -- 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

[ansible-project] Re: Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote tem

2016-02-12 Thread Laurent Hory
On my workstation this issue is only with ansible 2.0.2. ansible 1.9.4 work Le mardi 21 avril 2015 15:14:02 UTC+2, rrrki...@gmail.com a écrit : > > I am getting this error when I ran the playbook for the remote node . > > Could you please let me know how to resolve this error ? > -- You

[ansible-project] digital_ocean_domain fails on updates

2016-02-12 Thread 'Jimmy Boykin' via Ansible Project
Hello, I think I discovered a bug. Under all circumstances digital_ocean_domain will fail when the subdomain (name) already exist: fatal: [x.sample.com]: FAILED! => {"changed": false, "failed": true, "msg": "'Domain' object has no attribute 'id'"} If just a name and ip address is provided,

Re: [ansible-project] difference in "ansible PATH" & "server-side PATH"

2016-02-12 Thread Mark McCoy
When you login, there is a system-wide profile script that is imported with the barebones environment variables that are global to all users, then your local .profile is imported. If the shell is an interactive shell, then a third script (usually .bashrc for BASH or .zshrc for ZSH) is run

[ansible-project] Re: Running NSSM from copied executables on windows and avoid installing NSSM

2016-02-12 Thread 'J Hawkesworth' via Ansible Project
You will need to connect as a user with admin level privileges. You can probably use win_copy to push the nssm.exe on to your machine first. If I recall it is a single standalone executable with no external dependencies (except possibly .net) Jon On Friday, 12 February 2016 09:04:26 UTC, ishan

[ansible-project] Play single roles in a playbook

2016-02-12 Thread Daniele Varrazzo
Hello, All my playbooks looks like: - hosts: web_servers roles: - role: nginx tags: nginx - role: web_landing tags: web_landing - role: web_server tags: web_server because I want to be able to deploy only a certain role or subset

[ansible-project] Re: missing ansible.callbacks module

2016-02-12 Thread Mike Biancaniello
ansible.callbacks no longer exists in 2.0. it sounds like you are calling Ansible from a python script. If so, this process is very different in 2.0. You probably need to reach out to whomever wrote the software or downgrade your ansible to 1.9. If you want to take a stab at fixing it, the

[ansible-project] missing ansible.callbacks module

2016-02-12 Thread Manuele Simi
Hello, I'm completely new to ansible and I'm not even actually using it for direct development. A software I'm trying to install depends on ansible and it always reports the following error when started: root@cc9ce7befef1:~# elasticluster Traceback (most recent call last): File

Re: [ansible-project] Play single roles in a playbook

2016-02-12 Thread Matt Martz
What is the problem with using tags? We tag every role. At the moment, we have 65 tags aggregated across site.yml. tags are designed specifically for this functionality. On Fri, Feb 12, 2016 at 9:21 AM, Daniele Varrazzo < daniele.varra...@gmail.com> wrote: > Hello, > > All my playbooks looks

[ansible-project] Custom variable plugin to override order of precedence?

2016-02-12 Thread Adam Stracener
We currently have multiple repos for each of our applications and in each of these we have a group_vars for that application. We also have a common repo with all of the common roles and tasks for every repo and application across all our infrastructure. What we would like to do is move all the

Re: [ansible-project] Play single roles in a playbook

2016-02-12 Thread Daniele Varrazzo
On Friday, February 12, 2016 at 3:38:11 PM UTC, Matt Martz wrote: > > What is the problem with using tags? We tag every role. At the moment, > we have 65 tags aggregated across site.yml. > > tags are designed specifically for this functionality. > Sure tags work, that's why I use them. But

Re: [ansible-project] Play single roles in a playbook

2016-02-12 Thread Mike Biancaniello
It would be nice if roles could be autotagged with the role name. > -- 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] Re: Powershell Script playbook no running on servers

2016-02-12 Thread 'J Hawkesworth' via Ansible Project
Try with -vv ( 6 vs) which should show you the stdout / stderr from the script run. I would be tempted to insert some lines like the following to see what progress, if any, your script is making: Write-Host "Got here" Actually - I did a little digging and found this page -

[ansible-project] Re: Using ansible to call python script with subprocess module to run sqlplus script, Ansible shows missing sqlplus...?

2016-02-12 Thread rup
Without looking too closely at your code/error I ran into what may be a related issue. It's because the shell is not sourcing the profiles of the SSH user. I had to update my shell command to source my bashrc and primarily my profile first before executing my command like so: shell: . /path

[ansible-project] Re: missing ansible.callbacks module

2016-02-12 Thread Manuele Simi
Thanks Mike! I downgraded to 1.9.4 and it worked well. On Friday, February 12, 2016 at 12:15:20 PM UTC-5, Mike Biancaniello wrote: > > ansible.callbacks no longer exists in 2.0. > > it sounds like you are calling Ansible from a python script. If so, this > process is very different in 2.0. >

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-12 Thread Michael Baydoun
Spoke too soon, turning off fact caching fixed or worked around the problem. Opened a bug report https://github.com/ansible/ansible/issues/14456 >> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

[ansible-project] Merging inventories?

2016-02-12 Thread Nico K.
Hi, When one has multiple inventories like: inventories/a/hosts inventories/b/hosts inventories/.. Is there an easy way to run a task or playbook against all of them without explicitly having to define each inventory on the command-line? The use case here is that all those groups contain

[ansible-project] Docker Modules Roadmap

2016-02-12 Thread Chris Houseknecht
We’re excited to announce a clear roadmap to providing first-class support for container orchestration with Ansible. Over the coming months we will create a supported and maintainable solution that keeps pace with the fast moving world of containers. The current Docker modules will be around

Re: [ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)

2016-02-12 Thread Brian Coca
with_items: - {{ ansible_all_ipv4_addresses }} - {{ ansible_all_ipv6_addresses | ipv6('public') }} - tcpports ^ will flatten to single list or you can use union to get unique single list: with_items: "{{ tcpports|union(ansible_all_ipv4_addresses|union(ansible_all_ipv6_addresses |

Re: [ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)

2016-02-12 Thread nusenu
> similar to a question from about a year ago [1], I'm looking for the > best way to loop over 3 lists: > > - {{ ansible_all_ipv4_addresses }} > - {{ ansible_all_ipv6_addresses | ipv6('public') }} > - tcpports > > > ipv4 and ipv6 IPs should iterate in parallel (I'll check that their list >

Re: [ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)

2016-02-12 Thread nusenu
> with_items: > - {{ ansible_all_ipv4_addresses }} > - {{ ansible_all_ipv6_addresses | ipv6('public') }} > - tcpports > > > ^ will flatten to single list > > or you can use union to get unique single list: > > with_items: "{{ >

Re: [ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)

2016-02-12 Thread nusenu
Brian Coca: > ah, misunderstood the question, you wan to combine the nested and together > lookups (possible example): > > with_nested: > - "{{tcpports}}" > - "{{lookup('together', [ansible_all_ipv4_addresses, > ansible_all_ipv6_addresses | ipv6('public')] }}" Since I certainly will need

Re: [ansible-project] Need to find out all the commands that ansible is actually running

2016-02-12 Thread Brian Coca
no, as in many cases ansible is not running commands but doing system calls. -- 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

Re: [ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)

2016-02-12 Thread Brian Coca
ah, misunderstood the question, you wan to combine the nested and together lookups (possible example): with_nested: - "{{tcpports}}" - "{{lookup('together', [ansible_all_ipv4_addresses, ansible_all_ipv6_addresses | ipv6('public')] }}" -- Brian Coca -- You received this message

Re: [ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)

2016-02-12 Thread Brian Coca
sorry, did not test, surprised it does not take a list, maybe it has to be quoted ? -- 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