ansible: Update user tasks to use fully qualified task names
authorKienan Stewart <kstewart@efficios.com>
Fri, 18 Oct 2024 15:29:24 +0000 (11:29 -0400)
committerKienan Stewart <kstewart@efficios.com>
Fri, 18 Oct 2024 15:29:51 +0000 (11:29 -0400)
Change-Id: I2bd4369642bcbbd844dec0ca041261745763d85f
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/common/tasks/users.yml

index 8f7e1cfdb6c5f4953bb087b26b3980560040a3f3..3899450ec26760f5899e2dee4ff7a1bbb6b7274d 100644 (file)
@@ -3,36 +3,36 @@
     - access
   block:
     - name: Set up authorized_keys for the root user
-      authorized_key:
+      ansible.builtin.authorized_key:
         user: 'root'
         key: "{% for key in query('fileglob', 'public_keys/*.pub') %}{{ lookup('file', key) ~ '\n'}}{% endfor %}\n{% for key in lookup('vars', 'extra_root_ssh_authorized_keys', default=[]) %}{{ key ~ '\n' }}{% endfor %}"
         exclusive: true
 
     - name: Remove ubuntu user
-      user:
+      ansible.builtin.user:
         name: ubuntu
         state: absent
         remove: yes
 
     - name: Remove debian user
-      user:
+      ansible.builtin.user:
         name: debian
         state: absent
         remove: yes
 
     - name: Create jenkins user
       when: jenkins_user | bool
-      user:
+      ansible.builtin.user:
         name: 'jenkins'
 
     - name: Set up authorized_keys for the jenkins user
       when: jenkins_user | bool
-      authorized_key:
+      ansible.builtin.authorized_key:
         user: 'jenkins'
         # yamllint disable-line rule:line-length
         key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA3fwpioVLDoCQsQkYK5bOwPb8N0EXeYm2MleBQTfqxtKaqWWbmUtFXAiyclKHRspjcAiIKwwqLyhPopHBqJzmXnB0GsfGmxXJ6wSBgKJ4kdBVRM+nKlK0wCl1oQkFeV/Xl3jzt1Ey96XiNWlesfkvgcMCpsJzQ7/xRb9IcghskzlQbLOwDNir/156JgAYUYvOLqNCcE+xcgPxJGanfZDXTLkfBYxaeaB8isBPeEU6fhPvu/W055M1uB7E0qhcbFtuKCBu1Fg4jzsW4yDU8+ZB1b5mAXwEAuMbVGMrOf4rjtTpGpQd6XFsXpFT28NU1u5j2cUbtANJalkNDX/UY6XJ jenkins@ci-master-02'
 
     - name: Remove jenkins sudoers file
-      file:
+      ansible.builtin.file:
         path: "/etc/sudoers.d/jenkins"
         state: absent
This page took 0.023807 seconds and 4 git commands to generate.