skylab
/
skylab-ansible
Archived
2
0
Fork 0

Move tasks from update to provision

Move global bashrc and universal package install from update to provision playbooks
This commit is contained in:
Ethan Paul 2021-11-06 00:13:16 -04:00
parent 4a21c792e1
commit 12eabe1351
No known key found for this signature in database
GPG Key ID: 6A337337DF6B5B1A
2 changed files with 18 additions and 18 deletions

View File

@ -19,8 +19,6 @@
- name: Configure common settings
hosts: linux
gather_facts: false
vars_files:
- vars/packages.yaml
tasks:
- name: Set hostname
become: true
@ -28,15 +26,6 @@
name: "{{ skylab_networking.hostname | default(inventory_hostname) }}"
use: systemd
- name: Install global bash config
become: true
ansible.builtin.copy:
src: global.sh
dest: /etc/profile.d/ZZ-skylab-global.sh
owner: root
group: "{{ ansible_user }}"
mode: 0644
- name: Disable case-sensitive tab-completion
become: true
ansible.builtin.lineinfile:
@ -60,13 +49,7 @@
state: present
key: https://archive.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}
- name: Install universal packages
when: ansible_distribution == "Rocky"
become: true
ansible.builtin.dnf:
name: "{{ skylab_packages_global + skylab_packages_rocky }}"
state: present
update_cache: true
- import_playbook: update.yaml

View File

@ -30,6 +30,23 @@
name: "*"
state: latest
- name: Install global bash config
become: true
ansible.builtin.copy:
src: global.sh
dest: /etc/profile.d/ZZ-skylab-global.sh
owner: root
group: "{{ ansible_user }}"
mode: 0644
- name: Install universal packages
when: ansible_distribution == "Rocky"
become: true
ansible.builtin.dnf:
name: "{{ skylab_packages_global + skylab_packages_rocky }}"
state: present
update_cache: true
- name: Update unix accounts
hosts: linux
tags: