31 lines
683 B
YAML
31 lines
683 B
YAML
- name: create fai dir
|
|
file:
|
|
name: /srv/fai/config
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=r
|
|
|
|
- name: copy fai profile
|
|
synchronize:
|
|
src: profiles/
|
|
dest: /srv/fai/config/
|
|
mode: push
|
|
delete: yes
|
|
recursive: yes
|
|
register: fai_profiles
|
|
|
|
- name: Set APT proxy
|
|
template:
|
|
src: fai-profile-00-proxy.yml
|
|
dest: /srv/fai/config/files/etc/apt/apt.conf.d/00-proxy/HW4F_DESKTOP
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=r
|
|
register: fai_profiles_apt_proxy
|
|
|
|
- name: pack fai configuration
|
|
shell: tar -C /srv/fai/config -cf /srv/fai/config.tar .
|
|
when: "fai_profiles.changed or fai_profiles_apt_proxy.changed"
|
|
|