provision, refactor and ensure false keys are actually False.
This commit is contained in:
@@ -245,8 +245,8 @@
|
|||||||
- name: General | Account Management | Provisioning Configuration | General | Load
|
- name: General | Account Management | Provisioning Configuration | General | Load
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
provision: "{{ lookup('ini', 'enable file={{gen_file}} default=false') | bool }}"
|
provision: "{{ lookup('ini', 'enable file={{gen_file}} default=false') | bool }}"
|
||||||
user: "{{ lookup('ini', 'user file={{gen_file}} default=ling') }}"
|
user: "{{ lookup('ini', 'user file={{gen_file}} default=user' ) }}"
|
||||||
user_desc: "{{ lookup('ini', 'user_desc file={{gen_file}} default=Hyperling') }}"
|
user_desc: "{{ lookup('ini', 'user_desc file={{gen_file}} default=User' ) }}"
|
||||||
branch: "{{ lookup('ini', 'branch file={{gen_file}} default=main' ) }}"
|
branch: "{{ lookup('ini', 'branch file={{gen_file}} default=main' ) }}"
|
||||||
pentesting: "{{ lookup('ini', 'pentesting file={{gen_file}} default=false') | bool }}"
|
pentesting: "{{ lookup('ini', 'pentesting file={{gen_file}} default=false') | bool }}"
|
||||||
no_telem: "{{ lookup('ini', 'no_telem file={{gen_file}} default=false') | bool }}"
|
no_telem: "{{ lookup('ini', 'no_telem file={{gen_file}} default=false') | bool }}"
|
||||||
@@ -271,10 +271,10 @@
|
|||||||
tunnel_remote_port: "{{ lookup('ini', 'tunnel_remote_port file={{gen_file}} default=8080' ) | int }}"
|
tunnel_remote_port: "{{ lookup('ini', 'tunnel_remote_port file={{gen_file}} default=8080' ) | int }}"
|
||||||
tunnel_ssh_port: "{{ lookup('ini', 'tunnel_ssh_port file={{gen_file}} default=22' ) | int }}"
|
tunnel_ssh_port: "{{ lookup('ini', 'tunnel_ssh_port file={{gen_file}} default=22' ) | int }}"
|
||||||
|
|
||||||
- name: General | Account Management | Provisioning Configuration | General | Boolean Check | Swap Block
|
- name: General | Account Management | Provisioning Configuration | General | Boolean Check | swap_block
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
swap_block: "{{ swap_block | bool }}"
|
swap_block: "{{ swap_block | bool }}"
|
||||||
when: swap_block in ("true", "false")
|
when: swap_block in ("false")
|
||||||
|
|
||||||
- name: General | Account Management | Provisioning Configuration | General | List
|
- name: General | Account Management | Provisioning Configuration | General | List
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
@@ -492,11 +492,21 @@
|
|||||||
open_terminal_port: "{{ lookup('ini', 'open_terminal_port file={{wrk_file}} default=8000' ) | int }}"
|
open_terminal_port: "{{ lookup('ini', 'open_terminal_port file={{wrk_file}} default=8000' ) | int }}"
|
||||||
open_terminal_key: "{{ lookup('ini', 'open_terminal_key file={{wrk_file}} default=false') }}"
|
open_terminal_key: "{{ lookup('ini', 'open_terminal_key file={{wrk_file}} default=false') }}"
|
||||||
|
|
||||||
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | Editing
|
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | editing
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
editing: "{{ editing | bool }}"
|
editing: "{{ editing | bool }}"
|
||||||
when: editing in ("true", "false")
|
when: editing in ("true", "false")
|
||||||
|
|
||||||
|
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | qwen_code_key
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
qwen_code_key: "{{ qwen_code_key | bool }}"
|
||||||
|
when: qwen_code_key in ("false")
|
||||||
|
|
||||||
|
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | open_terminal_key
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
open_terminal_key: "{{ open_terminal_key | bool }}"
|
||||||
|
when: open_terminal_key in ("false")
|
||||||
|
|
||||||
- name: General | Account Management | Provisioning Configuration | Workstation | List
|
- name: General | Account Management | Provisioning Configuration | Workstation | List
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
provision_variables: "{{ provision_variables | combine(item) }}"
|
provision_variables: "{{ provision_variables | combine(item) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user