users: Support defining different branch 605/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 1 Feb 2021 20:05:33 +0000 (15:05 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 1 Feb 2021 20:05:33 +0000 (15:05 -0500)
This will allow one to run the users role prior to a PR being merged.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/users/defaults/main.yml
roles/users/tasks/update_keys.yml

index d7e2f73525d1d5d62c2b7dc845b73b0ea18da91f..e7772c30058c3425b8df067132f4fdd000e1d6cd 100644 (file)
@@ -25,6 +25,8 @@ revoked_users: []
 # A repo containing SSH pubkeys. Will be used for each user that has no key
 # specified.
 keys_repo: "https://github.com/ceph/keys"
+# Branch of above repo to use
+keys_branch: master
 # Where to clone keys_repo on the *local* disk
 keys_repo_path: "~/.cache/src/keys"
 
index 8b16fd6ca35c8f94c933f04871db5c6b15bd1f19..decb646429538b79f52f8ee603ffb73a0d5535ed 100644 (file)
@@ -7,7 +7,7 @@
   local_action:
     module: git
     repo: "{{ keys_repo }}"
-    version: master
+    version: "{{ keys_branch }}"
     # http://tracker.ceph.com/issues/16615
     # depth: 1
     force: yes