<p dir="auto">ISSUE TYPE<br>
bug report</p>
<p dir="auto">COMPONENT NAME<br>
authorized_key module</p>
<p dir="auto">ANSIBLE VERSION<br>
2.4.2</p>
<p dir="auto">CONFIGURATION<br>
No changes from defaults</p>
<p dir="auto">OS / ENVIRONMENT<br>
manager: Ubuntu 14.04.5 LTS<br>
managed host: CentOS Linux release 7.4.1708 (Core)</p>
<p dir="auto">SUMMARY<br>
:**</p>
<p dir="auto">I have a set of tasks that removes local users and removes their authorized_keys file using the authorized_key module.<br>
If I run a play that first deletes the user when the authorized_keys module attempts to remove the key it fails with the error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [centos1] (item={u'comment': u'ALMDG Joe Bloggs', u'state': u'absent', u'user': u'joebloggs', u'groups': u'admins'}) =&gt; {&quot;changed&quot;: false, &quot;item&quot;: {&quot;comment&quot;: &quot;Joe Bloggs&quot;, &quot;groups&quot;: &quot;admins&quot;, &quot;state&quot;: &quot;absent&quot;, &quot;user&quot;: &quot;joebloggs&quot;}, &quot;msg&quot;: &quot;Failed to lookup user joebloggs: 'getpwnam(): name not found: joebloggs'&quot;}
**"><pre class="notranslate"><code class="notranslate">failed: [centos1] (item={u'comment': u'ALMDG Joe Bloggs', u'state': u'absent', u'user': u'joebloggs', u'groups': u'admins'}) =&gt; {"changed": false, "item": {"comment": "Joe Bloggs", "groups": "admins", "state": "absent", "user": "joebloggs"}, "msg": "Failed to lookup user joebloggs: 'getpwnam(): name not found: joebloggs'"}
**
</code></pre></div>
<p dir="auto">STEPS TO REPRODUCE<br>
**</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- create an inventory with the following contents:

[centos7test]
centos1 ansible_ssh_pass=vagrant ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/centos1/virtualbox//private_key

[vagrant_security_management:children]
centos7test

- create a playbook with the following contents:

---
- hosts: centos7test
  gather_facts: yes
  become: yes
  roles:
  - role: security-management-linux

- create a file /group_vars/vagrant_security_management.yml with the following contents

#==========================================================
# Groups
# To add    the group to servers set the state to present
# To remove the group from servers set the state to absent
#==========================================================
almdc_groups:
  - { name: almdc_admins, comment: &quot;Admins Group&quot;, state: present }

#==========================================================
# To add    them to servers set the state to present
# To remove them from servers set the state to absent
#==========================================================
almdc_users:
  - { user: chriskinsella, comment: &quot;Chris Kinsella&quot;, groups: &quot;almdc_admins&quot;, state: present }
  - { user: joebloggs,     comment: &quot;Joe Bloggs&quot;    , groups: &quot;almdc_admins&quot;, state: present }

- create a role &quot;security-management-linux&quot; with the following file:
roles/security-management-linux/tasks/main.yml

---
  - name: Main | Manage Groups
    include_tasks: groups.yml
  - name: Main | Onboard &amp; Offboard Users by adding/removing user accounts, home directories and ssh keys
    include_tasks: users.yml

- create /roles/security-management-linux/tasks/groups.yml

---
  - name: Groups | Create groups
    group:
      name:  &quot;{{ item.name }}&quot;
      state: &quot;{{ item.state }}&quot;
    with_items:
      - &quot;{{ almdc_groups }}&quot;

- create /roles/security-management-linux/tasks/users.yml

---


# Notice the “expires” line in the YAML file below.
# It’s the time the account should be expired from.
# It’s in Epoch time.
# To get the NOW time in this format, go to “http://www.epochconverter.com/”.

  - name: Users | Create ALMDG Users in almdc_users
    user:
      createhome: yes
      comment:    &quot;{{ item.comment }}&quot;
      expires:    1609459199             # Set to 2020-12-31 23:59:59
      groups:     &quot;{{ item.groups }}&quot;
      name:       &quot;{{ item.user }}&quot;
      shell:      &quot;/bin/bash&quot;
      state:      &quot;{{ item.state }}&quot;
      remove:     yes
    with_items:
      - &quot;{{ almdc_users }}&quot;

  - name: Users | Manage SSH Public Keys
    authorized_key:
      key:        &quot;{{ lookup('file', 'files/' + item.user + '.pub') }}&quot;
      user:       &quot;{{ item.user }}&quot;
      comment:    &quot;{{ item.user }}&quot;
      manage_dir: yes
      state:      present #&quot;{{ item.state }}&quot;
    with_items:
      - &quot;{{ almdc_users }}&quot;

- create 2 ssh keypairs for the users (can be anything) and copy the contents of the .pub files to these files:

roles/security-management-linux/files/chriskinsella.pub
roles/security-management-linux/files/joebloggs.pub

- Run the play via:

ansible-playbook security-management.yml -i alm-inventory-vagrant-security_management.ini

- the group, 2 users and authorized_keys populated correctly

- modify the file /group_vars/vagrant_security_management.yml with the following contents setting almdc_users.user=joebloggs state to absent

#==========================================================
# Groups
# To add    the group to servers set the state to present
# To remove the group from servers set the state to absent
#==========================================================
almdc_groups:
  - { name: almdc_admins, comment: &quot;Admins Group&quot;, state: present }

#==========================================================
# To add    them to servers set the state to present
# To remove them from servers set the state to absent
#==========================================================
almdc_users:
  - { user: chriskinsella, comment: &quot;Chris Kinsella&quot;, groups: &quot;almdc_admins&quot;, state: present }
  - { user: joebloggs,     comment: &quot;Joe Bloggs&quot;    , groups: &quot;almdc_admins&quot;, state: absent }

- Run the play again via:

ansible-playbook security-management.yml -i alm-inventory-vagrant-security_management.ini

- the group and chriskinsella user remain unaffected.
- the joebloggs user is deleted but the &quot;- name: Users | Manage SSH Public Keys&quot; task gives the following error

 failed: [centos1] (item={u'comment': u'ALMDG Joe Bloggs', u'state': u'absent', u'user': u'joebloggs', u'groups': u'almdc_admins'}) =&gt; {&quot;changed&quot;: false, &quot;item&quot;: {&quot;comment&quot;: &quot;ALMDG Joe Bloggs&quot;, &quot;groups&quot;: &quot;almdc_admins&quot;, &quot;state&quot;: &quot;absent&quot;, &quot;user&quot;: &quot;joebloggs&quot;}, &quot;msg&quot;: &quot;Failed to lookup user joebloggs: 'getpwnam(): name not found: joebloggs'&quot;}"><pre class="notranslate"><code class="notranslate">- create an inventory with the following contents:

[centos7test]
centos1 ansible_ssh_pass=vagrant ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/centos1/virtualbox//private_key

[vagrant_security_management:children]
centos7test

- create a playbook with the following contents:

---
- hosts: centos7test
  gather_facts: yes
  become: yes
  roles:
  - role: security-management-linux

- create a file /group_vars/vagrant_security_management.yml with the following contents

#==========================================================
# Groups
# To add    the group to servers set the state to present
# To remove the group from servers set the state to absent
#==========================================================
almdc_groups:
  - { name: almdc_admins, comment: "Admins Group", state: present }

#==========================================================
# To add    them to servers set the state to present
# To remove them from servers set the state to absent
#==========================================================
almdc_users:
  - { user: chriskinsella, comment: "Chris Kinsella", groups: "almdc_admins", state: present }
  - { user: joebloggs,     comment: "Joe Bloggs"    , groups: "almdc_admins", state: present }

- create a role "security-management-linux" with the following file:
roles/security-management-linux/tasks/main.yml

---
  - name: Main | Manage Groups
    include_tasks: groups.yml
  - name: Main | Onboard &amp; Offboard Users by adding/removing user accounts, home directories and ssh keys
    include_tasks: users.yml

- create /roles/security-management-linux/tasks/groups.yml

---
  - name: Groups | Create groups
    group:
      name:  "{{ item.name }}"
      state: "{{ item.state }}"
    with_items:
      - "{{ almdc_groups }}"

- create /roles/security-management-linux/tasks/users.yml

---


# Notice the “expires” line in the YAML file below.
# It’s the time the account should be expired from.
# It’s in Epoch time.
# To get the NOW time in this format, go to “http://www.epochconverter.com/”.

  - name: Users | Create ALMDG Users in almdc_users
    user:
      createhome: yes
      comment:    "{{ item.comment }}"
      expires:    1609459199             # Set to 2020-12-31 23:59:59
      groups:     "{{ item.groups }}"
      name:       "{{ item.user }}"
      shell:      "/bin/bash"
      state:      "{{ item.state }}"
      remove:     yes
    with_items:
      - "{{ almdc_users }}"

  - name: Users | Manage SSH Public Keys
    authorized_key:
      key:        "{{ lookup('file', 'files/' + item.user + '.pub') }}"
      user:       "{{ item.user }}"
      comment:    "{{ item.user }}"
      manage_dir: yes
      state:      present #"{{ item.state }}"
    with_items:
      - "{{ almdc_users }}"

- create 2 ssh keypairs for the users (can be anything) and copy the contents of the .pub files to these files:

roles/security-management-linux/files/chriskinsella.pub
roles/security-management-linux/files/joebloggs.pub

- Run the play via:

ansible-playbook security-management.yml -i alm-inventory-vagrant-security_management.ini

- the group, 2 users and authorized_keys populated correctly

- modify the file /group_vars/vagrant_security_management.yml with the following contents setting almdc_users.user=joebloggs state to absent

#==========================================================
# Groups
# To add    the group to servers set the state to present
# To remove the group from servers set the state to absent
#==========================================================
almdc_groups:
  - { name: almdc_admins, comment: "Admins Group", state: present }

#==========================================================
# To add    them to servers set the state to present
# To remove them from servers set the state to absent
#==========================================================
almdc_users:
  - { user: chriskinsella, comment: "Chris Kinsella", groups: "almdc_admins", state: present }
  - { user: joebloggs,     comment: "Joe Bloggs"    , groups: "almdc_admins", state: absent }

- Run the play again via:

ansible-playbook security-management.yml -i alm-inventory-vagrant-security_management.ini

- the group and chriskinsella user remain unaffected.
- the joebloggs user is deleted but the "- name: Users | Manage SSH Public Keys" task gives the following error

 failed: [centos1] (item={u'comment': u'ALMDG Joe Bloggs', u'state': u'absent', u'user': u'joebloggs', u'groups': u'almdc_admins'}) =&gt; {"changed": false, "item": {"comment": "ALMDG Joe Bloggs", "groups": "almdc_admins", "state": "absent", "user": "joebloggs"}, "msg": "Failed to lookup user joebloggs: 'getpwnam(): name not found: joebloggs'"}
</code></pre></div>
<p dir="auto">**</p>
<p dir="auto">EXPECTED RESULTS<br>
**<br>
the "Users | Manage SSH Public Keys]" task should:</p>
<ol dir="auto">
<li>continue on the user not existing as we are Setting state to absent for the key</li>
<li>remove the ssh key from /home/users/joebloggs/.ssh/authorized_keys if it is present and the file exists</li>
</ol>
<p dir="auto">thanks</p>
<p dir="auto">Chris</p>
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">bug report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">authorized_key module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">1.9.1</p>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">No changes from defaults</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Both manager and managed host are Ubuntu 14.04</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">:**</p>
<p dir="auto">I have a set of tasks that create local users and manage their authorized_keys file using the authorized_key module. If I run a play containing these tasks in check mode against a brand-new managed host, the user creation is skipped as expected, but the authorized_key module fails because the user doesn't exist:</p>
<p dir="auto">**</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">**</p>
<ol dir="auto">
<li>Create a play with the following contents:</li>
</ol>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
---
- hosts: localhost
  become: yes
- tasks
    - name: Manage nonexistent user's ssh keys
      authorized_key:
        user: some_user_that_dont_exist
        key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt"><pre class="notranslate">---
- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
  <span class="pl-ent">become</span>: <span class="pl-s">yes</span>
- <span class="pl-s">tasks</span>
    - <span class="pl-ent">name</span>: <span class="pl-s">Manage nonexistent user's ssh keys</span>
      <span class="pl-ent">authorized_key</span>:
        <span class="pl-ent">user</span>: <span class="pl-s">some_user_that_dont_exist</span>
        <span class="pl-ent">key</span>: <span class="pl-s">ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt</span></pre></div>
<ol dir="auto">
<li>Execute the playbook with the following command:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; ansible-playbook &lt;play&gt; -vvv --check"><pre class="notranslate"><code class="notranslate">&gt; ansible-playbook &lt;play&gt; -vvv --check
</code></pre></div>
<p dir="auto">**</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">**</p>
<p dir="auto">I'm not 100% sure, but they should be successful.</p>
<p dir="auto">**</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">:**</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;localhost&gt; ESTABLISH CONNECTION FOR USER: &lt;user&gt;
&lt;localhost&gt; REMOTE_MODULE authorized_key key='ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt' user=some_user_that_dont_exist CHECKMODE=True
&lt;localhost&gt; EXEC  /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873 &amp;&amp; chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873'
&lt;localhost&gt; PUT /tmp/tmpX7FWmW TO /home/&lt;user&gt;/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873/authorized_key
&lt;localhost&gt; /bin/sh -c 'sudo -k &amp;&amp; sudo -H -S -p &quot;[sudo via ansible, key=aibazwkoommurhcmfiulnxkntybmefsg] password: &quot; -u root /bin/sh -c '&quot;'&quot;'echo BECOME-SUCCESS-aibazwkoommurhcmfiulnxkntybmefsg; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/&lt;user&gt;/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873/authorized_key; rm -rf /home/&lt;user&gt;/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873/ &gt;/dev/null 2&gt;&amp;1'&quot;'&quot;''
failed: [localhost] =&gt; (item=({'is_admin': True, 'name': 'some_user_that_dont_exist'}, 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt')) =&gt; {&quot;failed&quot;: true, &quot;item&quot;: [{&quot;is_admin&quot;: true, &quot;name&quot;: &quot;some_user_that_dont_exist&quot;}, &quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt&quot;]}
msg: Failed to lookup user some_user_that_dont_exist: 'getpwnam(): name not found: some_user_that_dont_exist'"><pre class="notranslate"><code class="notranslate">&lt;localhost&gt; ESTABLISH CONNECTION FOR USER: &lt;user&gt;
&lt;localhost&gt; REMOTE_MODULE authorized_key key='ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt' user=some_user_that_dont_exist CHECKMODE=True
&lt;localhost&gt; EXEC  /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873 &amp;&amp; chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873'
&lt;localhost&gt; PUT /tmp/tmpX7FWmW TO /home/&lt;user&gt;/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873/authorized_key
&lt;localhost&gt; /bin/sh -c 'sudo -k &amp;&amp; sudo -H -S -p "[sudo via ansible, key=aibazwkoommurhcmfiulnxkntybmefsg] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-aibazwkoommurhcmfiulnxkntybmefsg; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/&lt;user&gt;/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873/authorized_key; rm -rf /home/&lt;user&gt;/.ansible/tmp/ansible-tmp-1434226493.05-198959850076873/ &gt;/dev/null 2&gt;&amp;1'"'"''
failed: [localhost] =&gt; (item=({'is_admin': True, 'name': 'some_user_that_dont_exist'}, 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt')) =&gt; {"failed": true, "item": [{"is_admin": true, "name": "some_user_that_dont_exist"}, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSxrCsbXg6bXZglxShkbSQoOHAU6/1M+K+jRgv8qvQ3sEYDD1s1Rsjj+M5iBS94ZIGEujkMdKm/DjdymMbyQMYm0z8EfMBF6BCuHCwqP89TmXNd01Su9YajMB7C6E8RsbUh7MsMRuLd7EoXqHwCqUVNo8Pywdgcfnfmxy+O/KdyQNyhct8gjxcESlSys4FJiey5saRW3HOvuYcwlC4YGHD1ikW18p09NAhRR1pZf1AKp4gVsBduzONfj3t4rLi/9WW1SoMJAQ5IynK/856GBRy4HX1BtoHxEQfORCVFtPLprHLTfS7nFMoNMyFvYgJsFh90DQxAtYWXFEaRm7zh/Qt"]}
msg: Failed to lookup user some_user_that_dont_exist: 'getpwnam(): name not found: some_user_that_dont_exist'
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="88082424" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/1515" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/1515/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/1515">ansible/ansible-modules-core#1515</a></p>