]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible/examples/builder.yml: use chown -R to change perms
authorDan Mick <dmick@redhat.com>
Thu, 8 Jun 2023 09:02:07 +0000 (02:02 -0700)
committerDan Mick <dmick@redhat.com>
Mon, 10 Jul 2023 23:17:39 +0000 (16:17 -0700)
chown -R is *much* faster than the ansible file module

Signed-off-by: Dan Mick <dmick@redhat.com>
ansible/examples/builder.yml

index 858cf36b396402b521634c51c72d89adbc84fdd8..1558bd358a02c8a7f33617b5febf5144564c6a81 100644 (file)
       when: ansible_os_family == "Suse"
 
     - name: Ensure the home dir has the right owner permissions
-      file:
-        path: "/home/{{ jenkins_user }}"
-        state: directory
-        owner: "{{ jenkins_user }}"
-        group: "{{ jenkins_user }}"
-        recurse: yes
-        follow: no
+      command: "sudo chown -R {{ jenkins_user }}:{{ jenkins_user }} /home/{{ jenkins_user}}"
+      tags: chown
 
     ## DEBIAN GPG KEY TASKS
     - name: Install Debian GPG Keys on Ubuntu