tweaks to the cli install
This commit is contained in:
parent
1adc56623d
commit
08d228bc83
@ -1,2 +1,2 @@
|
|||||||
ansible_connection: vault_ansible_connection
|
ansible_ssh_private_key_file: "{{ vault_ansible_ssh_private_key_file }}"
|
||||||
ansible_user: vault_ansible_user
|
ansible_user: "{{ vault_ansible_user }}"
|
||||||
@ -1,12 +1,12 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
31636136626631343631313230666561316232626166613766343865363665646637373337346330
|
65386565386434393332363131613531316239623439616663343837663337623639626464643962
|
||||||
3664626530396334333734656430303064306165333564310a333032663266373838613461633664
|
3764323737616333326165666462356639643062636331640a356362333161343134626263373530
|
||||||
31353764356633616339356563653838643862623463616165613266353064373130653236636231
|
30653033666237383638396439393864356361383331316135396263616139306635346131376563
|
||||||
3234346161323562370a636562356361306431613764366465306566376439646665333362313762
|
6237373731646635370a313666366366396362643032663238393737346639616335616266393862
|
||||||
30633330376435636232343933633131653466363732316263343139656433343437353137656264
|
62353931343565383639373735636130316430336334623237396330653065323932643734306235
|
||||||
61323761653464653134613336383630623734633236636434643163626235613234386538353438
|
62386130656631656436303535393366616363326564623864613663356362613437343939663263
|
||||||
34363061623032363836613336353132373534633631323366393539653562333233393866306662
|
64316264646339616635616334643466313364326266646538363336643936636262376532366461
|
||||||
39396238383234363730343636393630323337363137643330623536643732653038366566363561
|
62633566376666363336633834643762363264396465316434313331623238616435613230393636
|
||||||
32363836646539396435316234363135303436333630353538663132343363363739366632363039
|
62303034366339663138366236313738383361343462356237373636616635306465383635666562
|
||||||
38666438396436303138353834363065666166623837633237333030356163383032373636353831
|
30363463323366306236613066323065356138363331656165393538373136323134333562366639
|
||||||
653665396539383738376539626664383536
|
626466303262626437653431326163373833
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
ansible_connection: vault_ansible_connection
|
ansible_ssh_private_key_file: "{{ vault_ansible_ssh_private_key_file }}"
|
||||||
ansible_user: vault_ansible_user
|
ansible_user: "{{ vault_ansible_user }}"
|
||||||
@ -1,2 +1,2 @@
|
|||||||
ansible_connection: vault_ansible_connection
|
ansible_ssh_private_key_file: "{{ vault_ansible_ssh_private_key_file }}"
|
||||||
ansible_user: vault_ansible_user
|
ansible_user: "{{ vault_ansible_user }}"
|
||||||
@ -1,2 +1,2 @@
|
|||||||
ansible_connection: vault_ansible_connection
|
ansible_ssh_private_key_file: "{{ vault_ansible_ssh_private_key_file }}"
|
||||||
ansible_user: vault_ansible_user
|
ansible_user: "{{ vault_ansible_user }}"
|
||||||
@ -7,7 +7,7 @@
|
|||||||
# ansible-playbook playbook.yml -i inventory.yml --tags cli
|
# ansible-playbook playbook.yml -i inventory.yml --tags cli
|
||||||
|
|
||||||
- name: Deploy modern CLI environment
|
- name: Deploy modern CLI environment
|
||||||
hosts: servers
|
hosts: herbydev
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
tags: [cli]
|
tags: [cli]
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
- name: Gather OS family facts
|
- name: Gather OS family facts
|
||||||
ansible.builtin.setup:
|
ansible.builtin.setup:
|
||||||
filter: ansible_os_family
|
filter: ansible_facts.os_family
|
||||||
when: ansible_os_family is not defined
|
when: ansible_facts['os_family'] is not defined
|
||||||
|
|
||||||
- name: Include OS-specific package tasks
|
- name: Include OS-specific package tasks
|
||||||
ansible.builtin.include_tasks: "packages-{{ ansible_os_family | lower }}.yml"
|
ansible.builtin.include_tasks: "packages-{{ ansible_os_family | lower }}.yml"
|
||||||
|
|||||||
@ -24,12 +24,20 @@
|
|||||||
- name: Extract Fish version number
|
- name: Extract Fish version number
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
cli_modern_fish_current_ver: >-
|
cli_modern_fish_current_ver: >-
|
||||||
{{ cli_modern_fish_version_check.stdout
|
{{ (cli_modern_fish_version_check.stdout
|
||||||
| default('')
|
| default('')
|
||||||
| regex_search('(\d+\.\d+)', '\1')
|
| regex_search('(\d+\.\d+)', '\1')
|
||||||
|
| default([], true))
|
||||||
| first
|
| first
|
||||||
| default('0') }}
|
| default('0') }}
|
||||||
|
|
||||||
|
- name: Add fastfetch PPA
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt_repository:
|
||||||
|
repo: ppa:zhangsongcui3371/fastfetch
|
||||||
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
- name: Determine if Fish PPA is needed
|
- name: Determine if Fish PPA is needed
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
cli_modern_need_fish_ppa: >-
|
cli_modern_need_fish_ppa: >-
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user