81398e847e
- Updated all tasks to use fully qualified module names (e.g., ansible.builtin.shell, ansible.builtin.copy) for clarity and to avoid ambiguity. - Replaced deprecated 'yum' module with 'dnf' for package management on RedHat-based systems. - Improved formatting and consistency in task definitions, including the use of double quotes for strings and consistent indentation. - Removed unnecessary comments and whitespace to enhance readability. - Ensured that conditions and loops are consistently formatted across all tasks.
10 lines
318 B
YAML
10 lines
318 B
YAML
---
|
|
- hosts: o25.oopen.de
|
|
|
|
tasks:
|
|
- name: Ensure aptitude is present
|
|
raw: test -e /usr/bin/aptitude || apt-get install aptitude -y
|
|
|
|
- name: Ensure python2 is present (This is necessary for ansible to work properly)
|
|
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
|