We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I guess it's about Ansible 2 compatibility, here's the -vvvv
TASK [bennojoy.nginx : Install the nginx packages] ***************************** task path: /etc/ansible/roles/bennojoy.nginx/tasks/main.yml:11 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/packaging/os/yum.py <pradvitop01> ESTABLISH SSH CONNECTION FOR USER: root <pradvitop01> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/remy/.ansible/cp/ansible-ssh-%h-%p-%r pradvitop01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1486381215.15-154476418521762 `" && echo ansible-tmp-1486381215.15-154476418521762="` echo ~/.ansible/tmp/ansible-tmp-1486381215.15-154476418521762 `" ) && sleep 0'"'"'' <pradvitop01> PUT /tmp/tmpey8r0w TO /root/.ansible/tmp/ansible-tmp-1486381215.15-154476418521762/yum.py <pradvitop01> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/remy/.ansible/cp/ansible-ssh-%h-%p-%r '[pradvitop01]' <pradvitop01> ESTABLISH SSH CONNECTION FOR USER: root <pradvitop01> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/remy/.ansible/cp/ansible-ssh-%h-%p-%r pradvitop01 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1486381215.15-154476418521762/ /root/.ansible/tmp/ansible-tmp-1486381215.15-154476418521762/yum.py && sleep 0'"'"'' <pradvitop01> ESTABLISH SSH CONNECTION FOR USER: root <pradvitop01> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/remy/.ansible/cp/ansible-ssh-%h-%p-%r -tt pradvitop01 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1486381215.15-154476418521762/yum.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1486381215.15-154476418521762/" > /dev/null 2>&1 && sleep 0'"'"'' failed: [pradvitop01] (item=[u'redhat_pkg']) => { "changed": false, "failed": true, "invocation": { "module_args": { "conf_file": null, "disable_gpg_check": false, "disablerepo": null, "enablerepo": null, "exclude": null, "install_repoquery": true, "list": null, "name": [ "redhat_pkg" ], "state": "present", "update_cache": false, "validate_certs": true }, "module_name": "yum" }, "item": [ "redhat_pkg" ], "msg": "No package matching 'redhat_pkg' found available, installed or updated", "rc": 126, "results": [ "No package matching 'redhat_pkg' found available, installed or updated" ] }
The text was updated successfully, but these errors were encountered:
FYI This should just need the variables in the task to put in braces, something like:
- name: Install the nginx packages yum: name={{ item }} state=present with_items: "{{ redhat_pkg }}" when: ansible_os_family == "RedHat"
Sorry, something went wrong.
No branches or pull requests
I guess it's about Ansible 2 compatibility, here's the -vvvv
The text was updated successfully, but these errors were encountered: