forked from MxOS/ansible-base
Compare commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
c78217bd52 |
|||
|
63ce4a4bde |
|||
|
1595473474 |
|||
|
41174831c6 |
|||
|
a3cc228ce2 |
|||
|
0630b56f45 |
|||
|
8c41c35af1 |
|||
| 1f276c472a |
12 changed files with 40 additions and 29 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#SPDX-License-Identifier: MIT-0
|
# SPDX-License-Identifier: MIT-0
|
||||||
---
|
---
|
||||||
# defaults file for roles/common
|
# defaults file for roles/common
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#SPDX-License-Identifier: MIT-0
|
# SPDX-License-Identifier: MIT-0
|
||||||
---
|
---
|
||||||
# handlers file for roles/common
|
# handlers file for roles/common
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#SPDX-License-Identifier: MIT-0
|
# SPDX-License-Identifier: MIT-0
|
||||||
---
|
---
|
||||||
# vars file for roles/common
|
# vars file for roles/common
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ packages:
|
||||||
- htop
|
- htop
|
||||||
- rpmconf
|
- rpmconf
|
||||||
- rsync
|
- rsync
|
||||||
|
- systemd-container
|
||||||
- tmux
|
- tmux
|
||||||
- tmux-powerline
|
- tmux-powerline
|
||||||
- vim
|
- vim
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue