mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-01 12:18:14 +00:00
add ansible install part of installs role
This commit is contained in:
parent
9ac04573a4
commit
d89d235b35
5 changed files with 20 additions and 6 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
- ssh
|
- ssh
|
||||||
- scripts
|
- scripts
|
||||||
apps:
|
apps:
|
||||||
|
- ansible
|
||||||
- cli
|
- cli
|
||||||
vars_prompt:
|
vars_prompt:
|
||||||
- name: tools_in
|
- name: tools_in
|
||||||
|
|
@ -19,9 +20,9 @@
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
tools: "{{ tools_in.split(',') }}"
|
tools: "{{ tools_in.split(',') }}"
|
||||||
roles:
|
roles:
|
||||||
# link and copy dotfiles
|
|
||||||
- role: dotfiles
|
|
||||||
# install apps
|
# install apps
|
||||||
- role: installs
|
- role: installs
|
||||||
|
# link and copy dotfiles
|
||||||
|
- role: dotfiles
|
||||||
# install and setup dev tools
|
# install and setup dev tools
|
||||||
- role: dev
|
- role: dev
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,16 @@
|
||||||
- ssh
|
- ssh
|
||||||
- scripts
|
- scripts
|
||||||
apps:
|
apps:
|
||||||
|
- ansible
|
||||||
- cli
|
- cli
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Get tools list
|
- name: Get tools list
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
tools: "{{ tools_in.split(',') }}"
|
tools: "{{ tools_in.split(',') }}"
|
||||||
roles:
|
roles:
|
||||||
# link and copy dotfiles
|
|
||||||
- role: dotfiles
|
|
||||||
# install apps
|
# install apps
|
||||||
- role: installs
|
- role: installs
|
||||||
|
# link and copy dotfiles
|
||||||
|
- role: dotfiles
|
||||||
# install and setup dev tools
|
# install and setup dev tools
|
||||||
- role: dev
|
- role: dev
|
||||||
|
|
|
||||||
10
roles/installs/tasks/ansible.yml
Normal file
10
roles/installs/tasks/ansible.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
- name: Installing ansible packages
|
||||||
|
become: true
|
||||||
|
ansible.builtin.dnf5:
|
||||||
|
name:
|
||||||
|
- ansible
|
||||||
|
- ansible-lint
|
||||||
|
- python3-github3py
|
||||||
|
- python3-rpm
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
|
@ -28,8 +28,6 @@
|
||||||
- git
|
- git
|
||||||
|
|
||||||
# other
|
# other
|
||||||
- ansible
|
|
||||||
- ansible-lint
|
|
||||||
- cronie
|
- cronie
|
||||||
|
|
||||||
state: latest
|
state: latest
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
- name: Installing ansible packages
|
||||||
|
ansible.builtin.import_tasks: ansible.yml
|
||||||
|
when: "'ansible' in apps"
|
||||||
|
|
||||||
- name: Installing common cli apps
|
- name: Installing common cli apps
|
||||||
ansible.builtin.import_tasks: cli.yml
|
ansible.builtin.import_tasks: cli.yml
|
||||||
when: "'cli' in apps"
|
when: "'cli' in apps"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue