dd
This commit is contained in:
parent
e0e32fa75b
commit
40b5321f8d
3 changed files with 6 additions and 17 deletions
|
@ -1,6 +1,7 @@
|
||||||
## mgrote.apt_manage_packages
|
## mgrote.apt_manage_packages
|
||||||
|
|
||||||
### Beschreibung
|
### Beschreibung
|
||||||
|
|
||||||
Fuehrt:
|
Fuehrt:
|
||||||
`apt install {{ programme }}`
|
`apt install {{ programme }}`
|
||||||
aus.
|
aus.
|
||||||
|
@ -13,10 +14,6 @@ aus.
|
||||||
- nur in VMs
|
- nur in VMs
|
||||||
apt_packages_extra:
|
apt_packages_extra:
|
||||||
- Extra-Parameter für einzelne Hosts
|
- Extra-Parameter für einzelne Hosts
|
||||||
apt_packages_internet:
|
|
||||||
- für URLs
|
|
||||||
- http://docker10.mgrote.net:3344/bash-helper-scripts-mgrote-latest.deb
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
Es wird unterschieden ob das Ziel eine VM ist oder nicht.
|
Es wird unterschieden ob das Ziel eine VM ist oder nicht.
|
||||||
|
|
|
@ -32,4 +32,3 @@ apt_packages_vm:
|
||||||
- open-vm-tools
|
- open-vm-tools
|
||||||
apt_packages_extra:
|
apt_packages_extra:
|
||||||
apt_packages_absent:
|
apt_packages_absent:
|
||||||
apt_packages_internet:
|
|
||||||
|
|
|
@ -1,39 +1,32 @@
|
||||||
---
|
---
|
||||||
- name: install common-packages
|
- name: Ensure common-packages are installed
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ apt_packages_common }}"
|
name: "{{ apt_packages_common }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: install extra-packages
|
- name: Ensure extra-packages are installed
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ apt_packages_extra }}"
|
name: "{{ apt_packages_extra }}"
|
||||||
state: present
|
state: present
|
||||||
when: apt_packages_extra is defined
|
when: apt_packages_extra is defined
|
||||||
|
|
||||||
- name: install vm-packages
|
- name: Ensure vm-packages are installed
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ apt_packages_vm }}"
|
name: "{{ apt_packages_vm }}"
|
||||||
state: present
|
state: present
|
||||||
when: ansible_virtualization_role == 'guest'
|
when: ansible_virtualization_role == 'guest'
|
||||||
|
|
||||||
- name: install physical-packages
|
- name: Ensure physical-packages are installed
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ apt_packages_physical }}"
|
name: "{{ apt_packages_physical }}"
|
||||||
state: present
|
state: present
|
||||||
when: ansible_virtualization_role != 'guest'
|
when: ansible_virtualization_role != 'guest'
|
||||||
|
|
||||||
- name: install packages from the internet
|
- name: Ensure packages are removed
|
||||||
become: true
|
|
||||||
ansible.builtin.apt:
|
|
||||||
deb: "{{ apt_packages_internet }}"
|
|
||||||
state: present
|
|
||||||
when: apt_packages_internet is defined
|
|
||||||
|
|
||||||
- name: remove packages
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ apt_packages_absent }}"
|
name: "{{ apt_packages_absent }}"
|
||||||
|
|
Loading…
Reference in a new issue