Top "Ansible-2.x" questions

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy.

Ansible - How to check the physical memory and free disk is greater than some value?

How to write an ansible task to check if the physical memory >=128 MB and free disk is >= 256 MB. …

linux ansible ansible-2.x
is it possible to add ansible_ssh_common_args in inventory file

i want to jump/SSH Bastion Host using ProxyCommand of ansible_ssh_common_args. ansible server:10.10.149.2 gateway/Bastion host:10.10.149.70 host …

ansible ansible-playbook ansible-2.x
ansible returns with "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6))

I am running myserver in ubuntu: + sudo cat /etc/os-release NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=…

ansible ansible-2.x ansible-inventory ansible-facts
'dict object' has no attribute 'stdout' in Ansible Playbook

My playbook: - name: JBoss KeyStore and Truststore passwords will be stored in the password vault #shell: less "{{ vault }}" shell: …

ansible ansible-2.x ansible-facts ansible-template
How can I run commands in sudo mode with ansible playbook?

I am trying to run a "folder creation" command with my ansible playbook. (Code is below) The creation requires sudo …

ansible ansible-2.x
Set Ansible variable to undefined through extra-vars or inventory variable

So I have an Ansible playbook that looks like --- - hosts: mygroup tasks: - debug: msg: "{{ foo | default(inventory_…

ansible ansible-2.x
Warning while constructing a mapping in Ansible

Whenever I run my playbook the following warning comes up: [WARNING]: While constructing a mapping from /etc/ansible/roles/foo/…

command-line-arguments ansible jinja2 ansible-playbook ansible-2.x
Can the templates module handle multiple templates / directories?

I believe the Ansible copy module can take a whole bunch of "files" and copy them in one hit. This …

ansible ansible-2.x ansible-template
Ansible with_dict expects a dict

I know this question has been asked many times before but I must be missing something here! This is a …

ansible ansible-2.x
How to add spaces at beginning of block in Ansible's blockinfile?

I found this blockinfile issue, where a user suggested adding a number after the "|" in the "block: |" line, but gives …

ansible ansible-2.x