48 lines
902 B
YAML
48 lines
902 B
YAML
---
|
|
- name: Install home dependencies
|
|
apt:
|
|
update_cache: true
|
|
install_recommends: false
|
|
name:
|
|
- python3-jinja2
|
|
- python3-ldap
|
|
register: apt_result
|
|
retries: 3
|
|
until: apt_result is succeeded
|
|
|
|
- name: Create home directory
|
|
file:
|
|
path: /var/local/home
|
|
state: directory
|
|
mode: '2775'
|
|
owner: root
|
|
group: _nounou
|
|
|
|
- name: Set ACL for home directory
|
|
acl:
|
|
path: /var/local/home
|
|
default: true
|
|
entity: _nounou
|
|
etype: group
|
|
permissions: rwx
|
|
state: query
|
|
|
|
- name: Clone home repository
|
|
git:
|
|
repo: 'http://gitlab.adm.crans.org/nounous/home.git'
|
|
dest: /var/local/home
|
|
umask: '002'
|
|
|
|
- name: Deploy home config
|
|
template:
|
|
src: home/home.json.j2
|
|
dest: /var/local/home/home.json
|
|
mode: 0600
|
|
owner: root
|
|
group: root
|
|
|
|
- name: Deploy cron for home
|
|
template:
|
|
src: cron.d/home.j2
|
|
dest: /etc/cron.d/home
|