You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 line
378B

  1. ---
  2. - name: move group
  3. command: "groupmod --new-name {{ item }} {{ users[item].old_name }}"
  4. loop: "{{ users.keys() | list }}"
  5. when: users[item].old_name is defined
  6. failed_when: false
  7. - name: move account
  8. command: "usermod --login {{ item }} {{ users[item].old_name }}"
  9. loop: "{{ users.keys() | list }}"
  10. when: users[item].old_name is defined
  11. failed_when: false