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
 | 
					- name: Configure common settings
 | 
				
			||||||
  hosts: linux
 | 
					  hosts: linux
 | 
				
			||||||
  gather_facts: false
 | 
					  gather_facts: false
 | 
				
			||||||
  vars_files:
 | 
					 | 
				
			||||||
    - vars/packages.yaml
 | 
					 | 
				
			||||||
  tasks:
 | 
					  tasks:
 | 
				
			||||||
    - name: Set hostname
 | 
					    - name: Set hostname
 | 
				
			||||||
      become: true
 | 
					      become: true
 | 
				
			||||||
@@ -28,15 +26,6 @@
 | 
				
			|||||||
        name: "{{ skylab_networking.hostname | default(inventory_hostname) }}"
 | 
					        name: "{{ skylab_networking.hostname | default(inventory_hostname) }}"
 | 
				
			||||||
        use: systemd
 | 
					        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
 | 
					    - name: Disable case-sensitive tab-completion
 | 
				
			||||||
      become: true
 | 
					      become: true
 | 
				
			||||||
      ansible.builtin.lineinfile:
 | 
					      ansible.builtin.lineinfile:
 | 
				
			||||||
@@ -60,13 +49,7 @@
 | 
				
			|||||||
        state: present
 | 
					        state: present
 | 
				
			||||||
        key: https://archive.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}
 | 
					        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
 | 
					- import_playbook: update.yaml
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,6 +30,23 @@
 | 
				
			|||||||
        name: "*"
 | 
					        name: "*"
 | 
				
			||||||
        state: latest
 | 
					        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
 | 
					- name: Update unix accounts
 | 
				
			||||||
  hosts: linux
 | 
					  hosts: linux
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user