mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-24 16:28:44 +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
|
||||
- scripts
|
||||
apps:
|
||||
- ansible
|
||||
- cli
|
||||
vars_prompt:
|
||||
- name: tools_in
|
||||
|
|
@ -19,9 +20,9 @@
|
|||
ansible.builtin.set_fact:
|
||||
tools: "{{ tools_in.split(',') }}"
|
||||
roles:
|
||||
# link and copy dotfiles
|
||||
- role: dotfiles
|
||||
# install apps
|
||||
- role: installs
|
||||
# link and copy dotfiles
|
||||
- role: dotfiles
|
||||
# install and setup dev tools
|
||||
- role: dev
|
||||
|
|
|
|||
|
|
@ -18,15 +18,16 @@
|
|||
- ssh
|
||||
- scripts
|
||||
apps:
|
||||
- ansible
|
||||
- cli
|
||||
pre_tasks:
|
||||
- name: Get tools list
|
||||
ansible.builtin.set_fact:
|
||||
tools: "{{ tools_in.split(',') }}"
|
||||
roles:
|
||||
# link and copy dotfiles
|
||||
- role: dotfiles
|
||||
# install apps
|
||||
- role: installs
|
||||
# link and copy dotfiles
|
||||
- role: dotfiles
|
||||
# install and setup dev tools
|
||||
- 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
|
||||
|
||||
# other
|
||||
- ansible
|
||||
- ansible-lint
|
||||
- cronie
|
||||
|
||||
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
|
||||
ansible.builtin.import_tasks: cli.yml
|
||||
when: "'cli' in apps"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue