Browse Source

Create only change if not using github ssh keys

master
Lilian Roller 11 months ago
parent
commit
2edc5b446b
No account linked to committer's email address
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      tasks/ssh_user.yml
  2. +1
    -1
      vars/main.yml

+ 4
- 4
tasks/ssh_user.yml View File

@@ -13,8 +13,8 @@
owner: '{{ local_user }}'
group: '{{ local_user }}'
mode: 'u=rwx,g=,o='
changed_when:
- github_users | length < 0
register: created_ssh_user_dir
changed_when: created_ssh_user_dir.changed and github_users | length == 0

- name: 'Add ssh keys for user {{ local_user }}'
become: yes
@@ -24,5 +24,5 @@
owner: '{{ local_user }}'
group: '{{ local_user }}'
mode: 'u=rw,g=,o='
changed_when:
- github_users | length < 0
register: added_ssh_key_4_user
changed_when: github_users | length == 0 and added_ssh_key_4_user.changed

+ 1
- 1
vars/main.yml View File

@@ -1,4 +1,4 @@
---
playbook_version_number: 9005 # should be over ninethousand
playbook_version_number: 9006 # should be over ninethousand
playbook_version_path: 'users-and-ssh-keys_chaos-bodensee_github.com.version'
restict_ssh_user_access: false

Loading…
Cancel
Save