Watch
1
0
Fork
You've already forked ansible-base
0
forked from MxOS/ansible-base

Compare commits

..
Author SHA256 Message Date
c78217bd52
fix(update): fix boolean list evaluation in display summary conditional
- Change 'dnf_update_result.results' check to 'dnf_update_result.results | length > 0'
  to prevent Jinja boolean evaluation failure on lists in Ansible 2.15+.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-08-11 15:59:51 -06:00
63ce4a4bde
fix(update): restore autoremove task per user preference
Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-08-11 15:53:22 -06:00
1595473474
fix(update): remove unsafe autoremove and increase reboot_timeout to 300s
- Remove dangerous dnf autoremove task from update.yaml to prevent silent package purges.
- Increase reboot_timeout from 30s to 300s (5 min) to prevent premature timeouts.
- Add pre_reboot_delay: 5 to allow journald buffer flushes.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-08-11 15:53:04 -06:00
41174831c6
fix(tmux): change status background color to colour60
Change tmux status-bg color from purple (invalid) to colour60.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>

Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-06-18 03:05:41 -06:00
a3cc228ce2
chore(base): limpia sintaxis, actualiza metadatos de roles y ajusta perfil de usuarios
- Se corrigió el módulo de ini_file usando community.general en vez de ansible.builtin.
- Se actualizaron autor, descripción y licencia en los metadatos de los roles.
- Se reordenaron variables de historial y se añadió HISTTIMEFORMAT en el perfil de usuario.
- Se acomodó el formato de los comentarios SPDX-License-Identifier.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-06-16 02:17:09 -06:00
0630b56f45
paquetes: removí cloud-init y cloud-utils-growpart 2025-06-10 21:24:44 -06:00
8c41c35af1
id: agregué algunos cambios para acomodar id0 2025-06-10 20:08:09 -06:00
1f276c472a Merge pull request 'update: README' (#4) from Dave/ansible-base:master into master
Reviewed-on: MxOS/ansible-base#4
2025-06-10 14:12:39 -04:00
12 changed files with 40 additions and 29 deletions

View file

@ -1,8 +1,9 @@
--- ---
- name: Base server configuration and tools - name: Base server configuration and tools
hosts: hosts:
- web
- git - git
- id
- web
vars_files: vars_files:
- vars/centos/dnf.yaml - vars/centos/dnf.yaml

View file

@ -1,13 +1,18 @@
--- ---
web:
hosts:
web0.mx-os.mx:
git: git:
hosts: hosts:
web0.mx-os.mx: web0.mx-os.mx:
id:
hosts:
id0.mx-os.mx:
runners: runners:
hosts: hosts:
0.fedora.runners.mx-os.mx: 0.fedora.runners.mx-os.mx:
1.fedora.runners.mx-os.mx: 1.fedora.runners.mx-os.mx:
web:
hosts:
web0.mx-os.mx:

View file

@ -1,3 +1,3 @@
#SPDX-License-Identifier: MIT-0 # SPDX-License-Identifier: MIT-0
--- ---
# defaults file for roles/common # defaults file for roles/common

View file

@ -1,4 +1,4 @@
#SPDX-License-Identifier: MIT-0 # SPDX-License-Identifier: MIT-0
--- ---
# handlers file for roles/common # handlers file for roles/common

View file

@ -1,8 +1,8 @@
#SPDX-License-Identifier: MIT-0 # SPDX-License-Identifier: MIT-0
galaxy_info: galaxy_info:
author: your name author: Rénich Bon Ćirić
description: your role description description: Base server configuration and common utilities
company: your company (optional) company: MxOS
# If the issue tracker for your role is not on github, uncomment the # If the issue tracker for your role is not on github, uncomment the
# next line and provide a value # next line and provide a value
@ -15,9 +15,9 @@ galaxy_info:
# - GPL-3.0-only # - GPL-3.0-only
# - Apache-2.0 # - Apache-2.0
# - CC-BY-4.0 # - CC-BY-4.0
license: license (GPL-2.0-or-later, MIT, etc) license: MIT
min_ansible_version: 2.1 min_ansible_version: "2.1"
# If this a Container Enabled role, provide the minimum Ansible Container version. # If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version: # min_ansible_container_version:

View file

@ -1,7 +1,7 @@
#SPDX-License-Identifier: MIT-0 # SPDX-License-Identifier: MIT-0
--- ---
- name: Configure dnf settings - name: Configure dnf settings
ansible.builtin.ini_file: community.general.ini_file:
path: /etc/dnf/dnf.conf path: /etc/dnf/dnf.conf
section: main section: main
option: "{{ item.option }}" option: "{{ item.option }}"
@ -160,7 +160,7 @@
set -g history-limit 20000 set -g history-limit 20000
# status color # status color
set -g status-bg purple set -g status-bg colour60
# resize # resize
setw -g aggressive-resize on setw -g aggressive-resize on
@ -176,4 +176,3 @@
owner: root owner: root
group: root group: root
mode: '0644' mode: '0644'

View file

@ -1,3 +1,3 @@
#SPDX-License-Identifier: MIT-0 # SPDX-License-Identifier: MIT-0
--- ---
# vars file for roles/common # vars file for roles/common

View file

@ -1,7 +1,7 @@
galaxy_info: galaxy_info:
author: your name author: Rénich Bon Ćirić
description: your role description description: User and group management with SSH keys
company: your company (optional) company: MxOS
# If the issue tracker for your role is not on github, uncomment the # If the issue tracker for your role is not on github, uncomment the
# next line and provide a value # next line and provide a value
@ -14,9 +14,9 @@ galaxy_info:
# - GPL-3.0-only # - GPL-3.0-only
# - Apache-2.0 # - Apache-2.0
# - CC-BY-4.0 # - CC-BY-4.0
license: license (GPL-2.0-or-later, MIT, etc) license: MIT
min_ansible_version: 2.1 min_ansible_version: "2.1"
# If this a Container Enabled role, provide the minimum Ansible Container version. # If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version: # min_ansible_container_version:

View file

@ -24,11 +24,11 @@
- name: Set infinite history - name: Set infinite history
ansible.builtin.copy: ansible.builtin.copy:
content: | content: |
export HISTSIZE=-1
export HISTFILESIZE=-1
export HISTCONTROL=ignoredups export HISTCONTROL=ignoredups
export HISTFILESIZE=-1
export HISTSIZE=-1
export HISTTIMEFORMAT="%F %T "
dest: /etc/profile.d/history.sh dest: /etc/profile.d/history.sh
owner: root owner: root
group: root group: root
mode: '0644' mode: '0644'

View file

@ -20,7 +20,10 @@
- name: Display summary of updated packages - name: Display summary of updated packages
ansible.builtin.debug: ansible.builtin.debug:
msg: "System packages updated. {{ dnf_update_result.results | length }} package(s) affected." msg: "System packages updated. {{ dnf_update_result.results | length }} package(s) affected."
when: dnf_update_result.changed and dnf_update_result.results is defined and dnf_update_result.results when:
- dnf_update_result.changed
- dnf_update_result.results is defined
- dnf_update_result.results | length > 0
- name: Remove unused dependencies (autoremove) - name: Remove unused dependencies (autoremove)
ansible.builtin.dnf: ansible.builtin.dnf:
@ -45,8 +48,8 @@
ansible.builtin.reboot: ansible.builtin.reboot:
msg: "Rebooting server to apply system updates." msg: "Rebooting server to apply system updates."
connect_timeout: 5 connect_timeout: 5
reboot_timeout: 30 reboot_timeout: 300
pre_reboot_delay: 0 pre_reboot_delay: 5
post_reboot_delay: 30 post_reboot_delay: 30
test_command: uptime test_command: uptime
when: reboot_is_needed and auto_reboot | bool when: reboot_is_needed and auto_reboot | bool

View file

@ -12,6 +12,7 @@ packages:
- htop - htop
- rpmconf - rpmconf
- rsync - rsync
- systemd-container
- tmux - tmux
- tmux-powerline - tmux-powerline
- vim - vim
@ -19,6 +20,8 @@ packages:
- wireshark-cli - wireshark-cli
unwanted_packages: unwanted_packages:
- cloud-init
- cloud-utils-growpart
- cockpit - cockpit
- cockpit-bridge - cockpit-bridge
- cockpit-packagekit - cockpit-packagekit
@ -26,4 +29,3 @@ unwanted_packages:
- cockpit-ws - cockpit-ws
- sos - sos

View file

@ -10,6 +10,7 @@ packages:
- htop - htop
- rpmconf - rpmconf
- rsync - rsync
- systemd-container
- tmux - tmux
- tmux-powerline - tmux-powerline
- vim - vim