anotherCommit
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: all
|
|
||||||
become: yes
|
|
||||||
tasks:
|
|
||||||
- name: Install Vim on Ubuntu servers
|
|
||||||
package:
|
|
||||||
name: vim
|
|
||||||
state: present
|
|
||||||
when: ansible_facts['os_family'] == 'Debian'
|
|
||||||
|
|
||||||
- name: Install Vim on Fedora servers
|
|
||||||
dnf:
|
|
||||||
name: vim
|
|
||||||
state: present
|
|
||||||
when: ansible_facts['distribution'] == 'Fedora'
|
|
||||||
+16
-7
@@ -7,11 +7,20 @@
|
|||||||
apt:
|
apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: ansible_facts['distribution'] == 'Ubuntu'
|
|
||||||
|
|
||||||
- name: Install Neofetch
|
- name: Make sure Zypper is installed
|
||||||
become: true
|
ansible.builtin.apt:
|
||||||
ansible.builtin.dnf:
|
name: "zypper"
|
||||||
name: neofetch
|
state: installed
|
||||||
state: present
|
|
||||||
when: ansible_facts['distribution'] == 'Fedora'
|
- name: See if pct needs a reboot
|
||||||
|
ansible.builtin.shell: "needs-restarting -r > /dev/null; echo $?"
|
||||||
|
register: needsRestarting
|
||||||
|
- name: debug
|
||||||
|
ansible.builtin.apt:
|
||||||
|
msg: "{{ needsRestarting }}"
|
||||||
|
|
||||||
|
- name: Reboot the Container
|
||||||
|
ansible.builtin.reboot:
|
||||||
|
reboot_timeout: 600
|
||||||
|
when: needsRestarting.stdout == "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user