+++ /dev/null
-- name: Create system groups
- become: true
- group:
- name: "{{ item }}"
- system: true
- loop: "{{ system_groups.split(',') }}"
-
-- name: Create group phd
- become: true
- group:
- name: phd
-
-- name: Add user phd
- become: true
- user:
- name: phd
- group: phd
- groups: "{{ system_groups }}"
- name: Create and setup user phd
block:
- - name: Create user phd
- import_tasks: create.yml
+ - name: Create system groups
+ become: true
+ group:
+ name: "{{ item }}"
+ system: true
+ loop: "{{ system_groups.split(',') }}"
+
+ - name: Create group phd
+ become: true
+ group:
+ name: phd
+
+ - name: Add user phd
+ become: true
+ user:
+ name: phd
+ group: phd
+ groups: "{{ system_groups }}"
+
- name: Upload and extract home archive
unarchive:
src: ~/archive/STORE/phd/Home/phd.tar.bz2