Hi,
I already opened an issue for my question but I was advised to come here
first.
The detailed description is available under
https://github.com/ansible/ansible/issues/32384
To sum it up:
I cannot manage to make the `ignore_errors` work with a variable.
When I use a hardcoded boolean it works
Or, I guess is it possible to have it pull from a file to avoid having to
use the --vault-id command in my ad hoc?
On Wed, Nov 1, 2017 at 12:10 PM, Larry Pescatore
wrote:
> Oleg, thanks.
> So, would I put 'vault-id /ansible/vault/file' in the hosts file?
> Because right now, the password is the
its apache not apcache
On Nov 1, 2017 15:37, "Artur001" wrote:
My main.yml
Введи- name: add php ppa
apt_repository: repo='ppa:ondrej/php' state=present
- name: update apt cache
apt: update_cache=yes
- name: install php requirements for joomla
apt: name=php{{ php.version }}-{{ item }} sta
Done, the key is to add:
remote_src: yes
On Wednesday, November 1, 2017 at 1:45:27 PM UTC-6, John Harmon wrote:
>
> OK, I see it is grabbing the file from my ansible server, and copying it
> to the managed server. I was expecting it to copy it from the managed
> server to the managed server.
OK, I see it is grabbing the file from my ansible server, and copying it to
the managed server. I was expecting it to copy it from the managed server
to the managed server... now I just need to figure out the right syntax for
that.
--
You received this message because you are subscribed to th
I set force to yes, and it is still happening.
On Wednesday, November 1, 2017 at 12:39:32 PM UTC-6, Toshio Kuratomi wrote:
>
> Ansible is stateless. So it doesn't know if the remote file exists in
> the way you have it because you changed it on the remote system or
> because a previous ansible
My main.yml
Введи- name: add php ppa
apt_repository: repo='ppa:ondrej/php' state=present
- name: update apt cache
apt: update_cache=yes
- name: install php requirements for joomla
apt: name=php{{ php.version }}-{{ item }} state=present
with_items:
- json
- xml
- mbstring
-
Oleg, thanks.
So, would I put 'vault-id /ansible/vault/file' in the hosts file?
Because right now, the password is there in the hosts file in the vars.
If I encrypt the hosts file, ping fails.
On Wed, Nov 1, 2017 at 2:44 AM, 'Oleg Gerasymchuk' via Ansible Project <
ansible-project@googlegroups.com
Ansible is stateless. So it doesn't know if the remote file exists in
the way you have it because you changed it on the remote system or
because a previous ansible run dropped that version of hte file there.
If you want Ansible to ensure that the remote file matches what you
have at your source th
On 01. nov. 2017 12:44, Dick Visser wrote:
> I have a few use cases where I define a list in group_vars/all.yml,
> for instance a list of users:
>
> users:
>- allen
>- bob
>- chris
>- dick
>
>
> So this list applies to all hosts in my case.
>
> But for a specific host, I want to
On 01. nov. 2017 16:40, mark.ha...@neonova.net wrote:
> Is there a way to delegate a group of tasks to a certain host from inside a
> role? As in, I want to run: pull a git repo, run composer install and make
> on one host then take the compiled files to other hosts in the role.
You have delegat
Looks like some doc-strings around
https://github.com/ansible/ansible/blob/stable-2.4/lib/ansible/inventory/manager.py#L119
would be helpful. The code is there so you can read about what is needed.
#yeahopensource
On Wed, Nov 1, 2017 at 10:39 AM, Brantley West wrote:
> Hello,
>
> It seems the d
Just follow the docs
http://docs.ansible.com/ansible/latest/intro_installation.html#running-from-source
--
--
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
Yes, but the contents of the file change the force option is set that
way on purpose so I don't overwrite any local changes if they exist.
On Wednesday, November 1, 2017 at 9:59:30 AM UTC-6, Brian Coca wrote:
>
> force: no prevents a copy if the dest file exists
>
>
>
>
> --
> --
>
force: no prevents a copy if the dest file exists
--
--
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...@go
I filed a bug:
https://github.com/ansible/ansible/issues/32445
--
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.
Got it, thanks.
On Wednesday, November 1, 2017 at 11:27:55 AM UTC-4, Toshio Kuratomi wrote:
>
> It depends on whether you are trying to get ansible to use a different
> python interpreter for the modules it runs or /usr/bin/ansible on the
> controller. Matt Martz's info oncansible_python_interp
Is there a way to delegate a group of tasks to a certain host from inside a
role? As in, I want to run: pull a git repo, run composer install and make
on one host then take the compiled files to other hosts in the role.
Does that make sense?
--
You received this message because you are subsc
Hello,
It seems the developing_api.rst page
(https://github.com/ansible/ansible/blob/v2.4.1.0-1/docs/docsite/rst/dev_guide/developing_api.rst)
is outdated due to the 2.4 inventory changes. Are there any tips for doing
simple inventory manipulation via Python with Ansible 2.4? Thanks!
-bw
-
# rpm -q ansible
ansible-2.4.1.0-1.el7.ans.noarch
I was having problems after running one of my playbooks with an unknown
module. I narrowed it down to a task in my playbook. Can someone explain
this? Seems like a bug.
---
- hosts: "{{ host }}"
tasks:
- name: PAM conf - Copy various pa
It depends on whether you are trying to get ansible to use a different
python interpreter for the modules it runs or /usr/bin/ansible on the
controller. Matt Martz's info oncansible_python_interpreter is correct for
the module side. For the controller side, you would need to change the
shebang li
I set ansible_python_interpreter in my ansible.cfg and then in my playbook
to point to a Python3.5 installation, but when I still get
$ ansible --version
ansible 2.4.0.0
config file = /users/myuser/.ansible.cfg
configured module search path =
[u'/users/myuser/.ansible/plugins/modules',
u'/u
it seems to be a bash behaviour which removes the double quotes before
passing the parameter.
The solution is to *pass the parameter in simple-quoted double-quotes* like
that:
- name: Checking for duplicate keys in json answer
local_action: script
/home/actionmystique/Bash/Scripts/json-check-
Hi
I have a few use cases where I define a list in group_vars/all.yml,
for instance a list of users:
users:
- allen
- bob
- chris
- dick
So this list applies to all hosts in my case.
But for a specific host, I want to add one entry to the list.
The only way I can get that to work is b
ansible 2.5.0 (devel 1068aa3ce7) last updated 2017/11/01 11:34:22 (GMT +200)
config file = /etc/ansible/ansible.cfg
configured module search path =
[u'/home/actionmystique/Ansible/git-yang-networkop/ansible-101/library']
ansible python module location =
/home/actionmystique/src/Ansible/git-
Hi. If I understand your question right, you don't want enter vault password
manually when running playbook - instead of this you want take this password
from file.
I'm pretty sure, that you already checked all related to it documentation, so
excuse me in advance - but let me to post here link
26 matches
Mail list logo