1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_etebase.git synced 2024-08-16 10:19:52 +02:00

update variable scheme

This commit is contained in:
L3D 2022-11-10 00:23:42 +01:00
parent 28a2bd3e8f
commit 7291902cbf
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 11 additions and 11 deletions

View file

@ -2,17 +2,17 @@
- name: "Create EteBase Group" - name: "Create EteBase Group"
become: true become: true
ansible.builtin.group: ansible.builtin.group:
name: "{{ etebase_group }}" name: "{{ etebase__group }}"
system: true system: true
state: "present" state: "present"
- name: "Create Etebase User" - name: "Create Etebase User"
become: true become: true
ansible.builtin.user: ansible.builtin.user:
name: "{{ etebase_user }}" name: "{{ etebase__user }}"
comment: "Etebase User" comment: "Etebase User"
group: "{{ etebase_group }}" group: "{{ etebase__group }}"
groups: "{{ etebase_groups | default(omit) }}" groups: "{{ etebase__groups | default(omit) }}"
home: "{{ etebase_user_home }}" home: "{{ etebase__user_home }}"
shell: "{{ etebase_shell }}" shell: "{{ etebase__shell }}"
system: true system: true

View file

@ -10,15 +10,15 @@
ansible.builtin.pip: ansible.builtin.pip:
name: bottle name: bottle
# requirements: /my_app/requirements.txt # requirements: /my_app/requirements.txt
virtualenv: "{{ etebase_venv }}" virtualenv: "{{ etebase__venv }}"
state: "{{ etebase_package_state }}" state: "{{ etebase__package_state }}"
umask: "0027" umask: "0027"
- name: Fix venv File owner/group - name: Fix venv File owner/group
become: true become: true
ansible.builtin.file: ansible.builtin.file:
path: "{{ etebase_venv }}" path: "{{ etebase__venv }}"
state: directory state: directory
mode: 'u=rwX,g=rX,o=' mode: 'u=rwX,g=rX,o='
group: "{{ etebase_group }}" group: "{{ etebase__group }}"
owner: "{{ etebase_user }}" owner: "{{ etebase__user }}"