1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/pylibs/tasks/main.yml

25 lines
708 B
YAML
Raw Normal View History

2019-11-19 13:56:47 +00:00
- name: Install iiab lib files
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: 0644
with_items:
- { src: 'iiab_const.py.j2', dest: '{{ py3_dist_path }}/iiab/iiab_const.py' }
2019-11-22 17:49:33 +00:00
- { src: 'iiab_lib.py', dest: '{{ py3_dist_path }}/iiab/iiab_lib.py' }
2019-11-26 18:38:15 +00:00
- { src: 'iiab_env.py.j2', dest: '{{ iiab_etc_path }}/iiab_env.py' }
# RECORD pylibs AS INSTALLED
- name: "Set 'pylibs_installed: True'"
set_fact:
pylibs_installed: True
- name: "Add 'pylibs_installed: True' to {{ iiab_state_file }}"
lineinfile:
path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
regexp: '^pylibs_installed'
line: 'pylibs_installed: True'