nis65 / ansible-specs-potos-mlc

Potos specs for my linux client
GNU General Public License v3.0
1 stars 0 forks source link

fix: workaround for runtype variable name #12

Closed nis65 closed 1 year ago

nis65 commented 1 year ago

Description

The template for the ansible pull script in the potos basics role defaults to a variable name defined by the client name:


./ansible/roles/basics/vars/main.yml:potos_basics_ansible_runtype_var_name: "{{ potos_basics_client_name | lower }}_runtype"

However, elsewhere this is not parametrized:

root@mlc0:/var/lib/mlc# find . -type f | xargs grep potos_runtype
./ansible/molecule/default/converge.yml:        - 'ansible-playbook -e "potos_runtype=daily" /potos/prepare.yml'
./ansible/molecule/default/converge.yml:        - 'ansible-playbook -e "potos_runtype=daily" /potos/playbook.yml'
./ansible/templates/requirements.yml.j2:{% if potos_runtype == 'setup' %}
./ansible/playbook.yml:    potos_runtype: 'daily'
./ansible/specs/files/templates/requirements.yml.j2:{% if potos_runtype == 'setup' %}
./ansible/roles/apt/tasks/apt_package.yml:        potos_runtype == setup

Dependencies

none