python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to print failure message in Ansible builtin.getent when user not found and continue with rest of tasks
I am trying to run a playbook if a specific system user does not exist and make it fail and print a message if the user exists. Below the how I do the user check:
- name: 'Check system user'
getent:...

Bursuc Sergiu
Votes: 0
Answers: 2
Ansible` ios_command `Error reading SSH protocol banner[Errno 104] Connection reset by peer
I have this command which basically is just to get the data from the device.
- name: Get data
tags: get_facts
ios_command:
commands:
- show version
register: ruijie_sh_interfaces
var...

user13539846
Votes: 0
Answers: 1
passing a variable value in with_items that is used in uri call
I am not sure if this is possible but here is what I am trying to do. I appreciate if any inputs.
I have a jinja2 template that have one variable value
say template.json.j2
{
"index_patterns&qu...
JBone
Votes: 0
Answers: 1
Ansible special tag 'never' is not working with import_playbook and --tags
The special tag 'never' is not applied in my second use case. I can't find out in the Ansible document if this is normal behavior, or if it is a bug.
playbook-parent.yml
- name: parent playbook
impo...
Oceania Water
Votes: 0
Answers: 2