Move tasks from update to provision
Move global bashrc and universal package install from update to provision playbooks
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user