Refactor Ansible tasks to use fully qualified module names and improve code consistency
- 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.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
---
|
||||
|
||||
# ---
|
||||
# NFS Server
|
||||
# ---
|
||||
|
||||
- name: (x2g-server.yml) Ensure X2Go server packages are installed.
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- x2goserver
|
||||
- x2goserver-xsession
|
||||
@@ -17,6 +16,3 @@
|
||||
- "groups['x2go_server']|string is search(inventory_hostname)"
|
||||
tags:
|
||||
- x2g--server
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user