系统初始化playbook

源码下载地址:https://github.com/raymond999999/ansible

[root@ansible-server ansible]# mkdir playbook/reset
[root@ansible-server ansible]# cd playbook/reset[root@ansible-server reset]# vim vars.yml
ROCKY_URL: mirrors.ustc.edu.cn
URL: mirrors.cloud.tencent.com[root@ansible-server reset]# mkdir templates[root@ansible-server reset]# vim templates/yum8.repo.j2
[BaseOS]
name=BaseOS
{% if ansible_distribution =="Rocky" %}
baseurl=https://{{ ROCKY_URL }}/rocky/$releasever/BaseOS/$basearch/os/
{% elif ansible_distribution=="CentOS" %}
baseurl=https://{{ URL }}/centos/$releasever-stream/BaseOS/$basearch/os/
{% endif %}
gpgcheck=1
{% if ansible_distribution =="Rocky" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
{% elif ansible_distribution=="CentOS" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
{% endif %}[AppStream]
name=AppStream
{% if ansible_distribution =="Rocky" %}
baseurl=https://{{ ROCKY_URL }}/rocky/$releasever/AppStream/$basearch/os/
{% elif ansible_distribution=="CentOS" %}
baseurl=https://{{ URL }}/centos/$releasever-stream/AppStream/$basearch/os/
{% endif %}
gpgcheck=1
{% if ansible_distribution =="Rocky" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
{% elif ansible_distribution=="CentOS" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
{% endif %}[extras]
name=extras
{% if ansible_distribution =="Rocky" %}
baseurl=https://{{ ROCKY_URL }}/rocky/$releasever/extras/$basearch/os/
{% elif ansible_distribution=="CentOS" %}
baseurl=https://{{ URL }}/centos/$releasever-stream/extras/$basearch/os/
{% endif %}
gpgcheck=1
{% if ansible_distribution =="Rocky" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
{% elif ansible_distribution=="CentOS" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
{% endif %}{% if ansible_distribution =="Rocky" %}
[plus]
{% elif ansible_distribution=="CentOS" %}
[centosplus]
{% endif %}
{% if ansible_distribution =="Rocky" %}
name=plus
{% elif ansible_distribution=="CentOS" %}
name=centosplus
{% endif %}
{% if ansible_distribution =="Rocky" %}
baseurl=https://{{ ROCKY_URL }}/rocky/$releasever/plus/$basearch/os/
{% elif ansible_distribution=="CentOS" %}
baseurl=https://{{ URL }}/centos/$releasever-stream/centosplus/$basearch/os/
{% endif %}
gpgcheck=1
{% if ansible_distribution =="Rocky" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
{% elif ansible_distribution=="CentOS" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
{% endif %}[PowerTools]
name=PowerTools
{% if ansible_distribution =="Rocky" %}
baseurl=https://{{ ROCKY_URL }}/rocky/$releasever/PowerTools/$basearch/os/
{% elif ansible_distribution=="CentOS" %}
baseurl=https://{{ URL }}/centos/$releasever-stream/PowerTools/$basearch/os/
{% endif %}
gpgcheck=1
{% if ansible_distribution =="Rocky" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
{% elif ansible_distribution=="CentOS" %}
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
{% endif %}[epel]
name=epel
{% if ansible_distribution =="Rocky" %}
baseurl=https://{{ ROCKY_URL }}/fedora/epel/$releasever/Everything/$basearch/
{% elif ansible_distribution=="CentOS" %}
baseurl=https://{{ URL }}/epel/$releasever/Everything/$basearch/
{% endif %}
gpgcheck=1
{% if ansible_distribution =="Rocky" %}
gpgkey=https://{{ ROCKY_URL }}/fedora/epel/RPM-GPG-KEY-EPEL-$releasever
{% elif ansible_distribution=="CentOS" %}
gpgkey=https://{{ URL }}/epel/RPM-GPG-KEY-EPEL-$releasever
{% endif %}[root@ansible-server reset]# vim templates/yum7.repo.j2
[base]
name=base
baseurl=https://{{ URL }}/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[extras]
name=extras
baseurl=https://{{ URL }}/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[updates]
name=updates
baseurl=https://{{ URL }}/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[centosplus]
name=centosplus
baseurl=https://{{ URL }}/centos/$releasever/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[epel]
name=epel
baseurl=https://{{ URL }}/epel/$releasever/$basearch/
gpgcheck=1
gpgkey=https://{{ URL }}/epel/RPM-GPG-KEY-EPEL-$releasever[root@ansible-server reset]# vim templates/apt.list.j2
deb http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }} main restricted universe multiverse
deb-src http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }} main restricted universe multiversedeb http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-security main restricted universe multiverse
deb-src http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-security main restricted universe multiversedeb http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-updates main restricted universe multiverse
deb-src http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-updates main restricted universe multiversedeb http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-proposed main restricted universe multiverse
deb-src http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-proposed main restricted universe multiversedeb http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-backports main restricted universe multiverse
deb-src http://{{ URL }}/ubuntu/ {{ ansible_distribution_release }}-backports main restricted universe multiverse[root@ansible-server reset]# vim reset.yml
---
- hosts: allvars_files:vars.yml tasks:- name: set hostnamehostname:name: "{{ hname }}.{{ domain }}"- name: disable selinuxreplace:path: /etc/sysconfig/selinuxregexp: '^(SELINUX=).*'replace: '\1disabled'when:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- name: disable firewallsystemd:name: firewalldstate: stoppedenabled: nowhen:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- name: disable ufwsystemd:name: ufwstate: stoppedenabled: nowhen:- ansible_distribution=="Ubuntu"- name: optimization sshd disable UseDNSreplace:path: /etc/ssh/sshd_configregexp: '^#(UseDNS).*'replace: '\1 no'- name: optimization sshd diaable CentOS or Rocky GSSAPIAuthenticationreplace:path: /etc/ssh/sshd_configregexp: '^(GSSAPIAuthentication).*'replace: '\1 no'when:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- name: optimization sshd diaable Ubuntu GSSAPIAuthenticationreplace:path: /etc/ssh/sshd_configregexp: '^#(GSSAPIAuthentication).*'replace: '\1 no'when:- ansible_distribution=="Ubuntu"- name: set CentOS or Rocky aliaslineinfile:path: ~/.bashrcline: "{{ item }}"loop:- "alias cdnet=\"cd /etc/sysconfig/network-scripts\""- "alias vie0=\"vim /etc/sysconfig/network-scripts/ifcfg-eth0\""- "alias vie1=\"vim /etc/sysconfig/network-scripts/ifcfg-eth1\""- "alias scandisk=\"echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan\""when:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- name: set Ubuntu aliaslineinfile:path: ~/.bashrcline: "{{ item }}"loop:- "alias cdnet=\"cd /etc/netplan\""- "alias scandisk=\"echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan\""when:- ansible_distribution=="Ubuntu"- name: find CentOS or Rocky repo filesfind:paths: /etc/yum.repos.d/patterns: "*.repo"register: FILENAMEwhen:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- name: delete CentOS or Rocky repo filesfile:path: "{{ item.path }}"state: absentwith_items: "{{ FILENAME.files }}"when:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- name: set CentOS8 or Rocky8 Mirror warehousetemplate:src: yum8.repo.j2dest: /etc/yum.repos.d/base.repowhen:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- ansible_distribution_major_version=="8"- name: set CentOS7 Mirror warehousetemplate:src: yum7.repo.j2dest: /etc/yum.repos.d/base.repowhen:- ansible_distribution=="CentOS"- ansible_distribution_major_version=="7"- name: set Ubuntu Mirror warehousetemplate:src: apt.list.j2dest: /etc/apt/sources.listwhen:- ansible_distribution=="Ubuntu"- name: delete lock filesfile:path: "{{ item }}"state: absentloop:- /var/lib/dpkg/lock- /var/lib/apt/lists/lock- /var/cache/apt/archives/lockwhen:- ansible_distribution=="Ubuntu"- name: apt updateapt:update_cache: yes force: yes when:- ansible_distribution=="Ubuntu"- name: install Centos or Rocky packageyum:name: vim,tree,lrzszwhen:- (ansible_distribution=="CentOS" or ansible_distribution=="Rocky")- name: install Ubuntu packageapt:name: tree,lrzszforce: yes when:- ansible_distribution=="Ubuntu"- name: reboot systemreboot:[root@ansible-server playbook]# cd ..
[root@ansible-server ansible]# ansible-playbook playbook/reset/reset.yml PLAY [all] ************************************************************************************************************************************TASK [Gathering Facts] ************************************************************************************************************************
ok: [172.31.0.103]
ok: [172.31.0.101]
ok: [172.31.0.104]
ok: [172.31.0.102]
ok: [172.31.0.105]TASK [set hostname] ***************************************************************************************************************************
changed: [172.31.0.105]
changed: [172.31.0.104]
changed: [172.31.0.103]
changed: [172.31.0.101]
changed: [172.31.0.102]TASK [disable selinux] ************************************************************************************************************************
skipping: [172.31.0.104]
skipping: [172.31.0.105]
changed: [172.31.0.103]
changed: [172.31.0.101]
changed: [172.31.0.102]TASK [disable firewall] ***********************************************************************************************************************
skipping: [172.31.0.104]
skipping: [172.31.0.105]
changed: [172.31.0.103]
changed: [172.31.0.101]
changed: [172.31.0.102]TASK [disable ufw] ****************************************************************************************************************************
skipping: [172.31.0.101]
skipping: [172.31.0.102]
skipping: [172.31.0.103]
changed: [172.31.0.104]
changed: [172.31.0.105]TASK [optimization sshd disable UseDNS] *******************************************************************************************************
changed: [172.31.0.103]
changed: [172.31.0.104]
changed: [172.31.0.102]
changed: [172.31.0.101]
changed: [172.31.0.105]TASK [optimization sshd diaable CentOS or Rocky GSSAPIAuthentication] *************************************************************************
skipping: [172.31.0.104]
skipping: [172.31.0.105]
changed: [172.31.0.103]
changed: [172.31.0.102]
changed: [172.31.0.101]TASK [optimization sshd diaable Ubuntu GSSAPIAuthentication] **********************************************************************************
skipping: [172.31.0.101]
skipping: [172.31.0.102]
skipping: [172.31.0.103]
changed: [172.31.0.104]
changed: [172.31.0.105]TASK [set CentOS or Rocky alias] **************************************************************************************************************
skipping: [172.31.0.104] => (item=alias cdnet="cd /etc/sysconfig/network-scripts")
skipping: [172.31.0.104] => (item=alias vie0="vim /etc/sysconfig/network-scripts/ifcfg-eth0")
skipping: [172.31.0.104] => (item=alias vie1="vim /etc/sysconfig/network-scripts/ifcfg-eth1")
skipping: [172.31.0.104] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
skipping: [172.31.0.105] => (item=alias cdnet="cd /etc/sysconfig/network-scripts")
skipping: [172.31.0.105] => (item=alias vie0="vim /etc/sysconfig/network-scripts/ifcfg-eth0")
skipping: [172.31.0.105] => (item=alias vie1="vim /etc/sysconfig/network-scripts/ifcfg-eth1")
skipping: [172.31.0.105] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
changed: [172.31.0.103] => (item=alias cdnet="cd /etc/sysconfig/network-scripts")
changed: [172.31.0.102] => (item=alias cdnet="cd /etc/sysconfig/network-scripts")
changed: [172.31.0.101] => (item=alias cdnet="cd /etc/sysconfig/network-scripts")
changed: [172.31.0.103] => (item=alias vie0="vim /etc/sysconfig/network-scripts/ifcfg-eth0")
changed: [172.31.0.102] => (item=alias vie0="vim /etc/sysconfig/network-scripts/ifcfg-eth0")
changed: [172.31.0.103] => (item=alias vie1="vim /etc/sysconfig/network-scripts/ifcfg-eth1")
changed: [172.31.0.101] => (item=alias vie0="vim /etc/sysconfig/network-scripts/ifcfg-eth0")
changed: [172.31.0.103] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
changed: [172.31.0.102] => (item=alias vie1="vim /etc/sysconfig/network-scripts/ifcfg-eth1")
changed: [172.31.0.101] => (item=alias vie1="vim /etc/sysconfig/network-scripts/ifcfg-eth1")
changed: [172.31.0.102] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
changed: [172.31.0.101] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")TASK [set Ubuntu alias] ***********************************************************************************************************************
skipping: [172.31.0.101] => (item=alias cdnet="cd /etc/netplan")
skipping: [172.31.0.101] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
skipping: [172.31.0.102] => (item=alias cdnet="cd /etc/netplan")
skipping: [172.31.0.102] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
skipping: [172.31.0.103] => (item=alias cdnet="cd /etc/netplan")
skipping: [172.31.0.103] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
changed: [172.31.0.105] => (item=alias cdnet="cd /etc/netplan")
changed: [172.31.0.104] => (item=alias cdnet="cd /etc/netplan")
changed: [172.31.0.105] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")
changed: [172.31.0.104] => (item=alias scandisk="echo '- - -' > /sys/class/scsi_host/host0/scan;echo '- - -' > /sys/class/scsi_host/host1/scan;echo '- - -' > /sys/class/scsi_host/host2/scan")TASK [find CentOS or Rocky repo files] ********************************************************************************************************
skipping: [172.31.0.104]
skipping: [172.31.0.105]
ok: [172.31.0.103]
ok: [172.31.0.101]
ok: [172.31.0.102]TASK [delete CentOS or Rocky repo files] ******************************************************************************************************
skipping: [172.31.0.104]
skipping: [172.31.0.105]
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321074, 'isgid': False, 'size': 1664, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-Base.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.913163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-AppStream.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 719, 'inode': 67385230, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-AppStream.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 700, 'inode': 201329274, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321075, 'isgid': False, 'size': 1309, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-CR.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.913163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321076, 'isgid': False, 'size': 649, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-Debuginfo.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.913163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-BaseOS.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 685, 'inode': 201329275, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-BaseOS.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 704, 'inode': 67385231, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321077, 'isgid': False, 'size': 630, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-Media.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.913163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 1130, 'inode': 67385232, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-Debuginfo.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 1753, 'inode': 201329276, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321078, 'isgid': False, 'size': 1331, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-Sources.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.913163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321079, 'isgid': False, 'size': 8515, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-Vault.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.913163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 318, 'inode': 67385233, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-Devel.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 350, 'inode': 201329277, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321080, 'isgid': False, 'size': 314, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-fasttrack.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.915163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-Devel.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 732, 'inode': 67385234, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.103] => (item={'uid': 0, 'woth': False, 'mtime': 1603464839.0, 'inode': 134321081, 'isgid': False, 'size': 616, 'roth': True, 'isuid': False, 'isreg': True, 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'xoth': False, 'rusr': True, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/yum.repos.d/CentOS-x86_64-kernel.repo', 'xusr': False, 'atime': 1603464839.0, 'isdir': False, 'ctime': 1608541503.915163, 'isblk': False, 'xgrp': False, 'dev': 2050, 'wgrp': False, 'isfifo': False, 'mode': '0644', 'islnk': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-Extras.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 685, 'inode': 201329278, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-Extras.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 704, 'inode': 67385235, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-HighAvailability.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 721, 'inode': 201329279, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-FastTrack.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 719, 'inode': 67385236, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-Media.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 680, 'inode': 201333312, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-HighAvailability.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 740, 'inode': 67385237, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.4996922, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-NFV.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 670, 'inode': 201333313, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-Media.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 693, 'inode': 67385238, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.501692, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-Plus.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 680, 'inode': 201333314, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-Plus.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 706, 'inode': 67385239, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.501692, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-PowerTools.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 705, 'inode': 201333315, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-PowerTools.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 724, 'inode': 67385240, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.501692, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-RT.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 671, 'inode': 201333316, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.102] => (item={'path': '/etc/yum.repos.d/CentOS-Linux-Sources.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 1124, 'inode': 67385241, 'dev': 64768, 'nlink': 1, 'atime': 1631668297.0, 'mtime': 1631668297.0, 'ctime': 1641029333.501692, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-ResilientStorage.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 736, 'inode': 201333317, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.3176675, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})
changed: [172.31.0.101] => (item={'path': '/etc/yum.repos.d/Rocky-Sources.repo', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 2335, 'inode': 201333318, 'dev': 66306, 'nlink': 1, 'atime': 1633735759.0, 'mtime': 1633735759.0, 'ctime': 1637138057.319668, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})TASK [set CentOS8 or Rocky8 Mirror warehouse] *************************************************************************************************
skipping: [172.31.0.103]
skipping: [172.31.0.104]
skipping: [172.31.0.105]
changed: [172.31.0.102]
changed: [172.31.0.101]TASK [set CentOS7 Mirror warehouse] ***********************************************************************************************************
skipping: [172.31.0.101]
skipping: [172.31.0.102]
skipping: [172.31.0.104]
skipping: [172.31.0.105]
changed: [172.31.0.103]TASK [set Ubuntu Mirror warehouse] ************************************************************************************************************
skipping: [172.31.0.101]
skipping: [172.31.0.102]
skipping: [172.31.0.103]
changed: [172.31.0.105]
changed: [172.31.0.104]TASK [delete lock files] **********************************************************************************************************************
skipping: [172.31.0.101] => (item=/var/lib/dpkg/lock)
skipping: [172.31.0.101] => (item=/var/lib/apt/lists/lock)
skipping: [172.31.0.101] => (item=/var/cache/apt/archives/lock)
skipping: [172.31.0.102] => (item=/var/lib/dpkg/lock)
skipping: [172.31.0.102] => (item=/var/lib/apt/lists/lock)
skipping: [172.31.0.102] => (item=/var/cache/apt/archives/lock)
skipping: [172.31.0.103] => (item=/var/lib/dpkg/lock)
skipping: [172.31.0.103] => (item=/var/lib/apt/lists/lock)
skipping: [172.31.0.103] => (item=/var/cache/apt/archives/lock)
changed: [172.31.0.105] => (item=/var/lib/dpkg/lock)
changed: [172.31.0.104] => (item=/var/lib/dpkg/lock)
changed: [172.31.0.105] => (item=/var/lib/apt/lists/lock)
changed: [172.31.0.104] => (item=/var/lib/apt/lists/lock)
changed: [172.31.0.105] => (item=/var/cache/apt/archives/lock)
changed: [172.31.0.104] => (item=/var/cache/apt/archives/lock)TASK [apt update] *****************************************************************************************************************************
skipping: [172.31.0.101]
skipping: [172.31.0.102]
skipping: [172.31.0.103]
changed: [172.31.0.105]
changed: [172.31.0.104]TASK [install Centos or Rocky package] ********************************************************************************************************
skipping: [172.31.0.104]
skipping: [172.31.0.105]
changed: [172.31.0.103]
changed: [172.31.0.101]
changed: [172.31.0.102]TASK [install Ubuntu package] *****************************************************************************************************************
skipping: [172.31.0.101]
skipping: [172.31.0.102]
skipping: [172.31.0.103]
changed: [172.31.0.105]
changed: [172.31.0.104]TASK [reboot system] **************************************************************************************************************************
changed: [172.31.0.103]
changed: [172.31.0.101]
changed: [172.31.0.105]
changed: [172.31.0.104]
changed: [172.31.0.102]PLAY RECAP ************************************************************************************************************************************
172.31.0.101               : ok=12   changed=10   unreachable=0    failed=0    skipped=8    rescued=0    ignored=0
172.31.0.102               : ok=12   changed=10   unreachable=0    failed=0    skipped=8    rescued=0    ignored=0
172.31.0.103               : ok=12   changed=10   unreachable=0    failed=0    skipped=8    rescued=0    ignored=0
172.31.0.104               : ok=11   changed=10   unreachable=0    failed=0    skipped=9    rescued=0    ignored=0
172.31.0.105               : ok=11   changed=10   unreachable=0    failed=0    skipped=9    rescued=0    ignored=0[root@rocky8-client ~]# hostname
rocky8-client.example.local
[root@centos8-client ~]# hostname
centos8-client.example.local
[root@centos7-client ~]# hostname
centos7-client.example.local
root@ubuntu1804-client:~# hostname
ubuntu1804-client.example.local
root@ubuntu2004-client:~# hostname
ubuntu2004-client.example.local[root@rocky8-client ~]# getenforce
Disabled
[root@centos8-client ~]# getenforce
Disabled
[root@centos7-client ~]# getenforce
Disabled[root@rocky8-client ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@centos8-client ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@centos7-client ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)root@ubuntu1804-client:~# systemctl status ufw
● ufw.service - Uncomplicated firewallLoaded: loaded (/lib/systemd/system/ufw.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:ufw(8)
root@ubuntu2004-client:~# systemctl status ufw
● ufw.service - Uncomplicated firewallLoaded: loaded (/lib/systemd/system/ufw.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:ufw(8)[root@rocky8-client ~]# grep "^UseDNS" /etc/ssh/sshd_config
UseDNS no
[root@rocky8-client ~]# grep "^GSSAPIAuthentication" /etc/ssh/sshd_config
GSSAPIAuthentication no
[root@centos8-client ~]# grep "^UseDNS" /etc/ssh/sshd_config
UseDNS no
[root@centos8-client ~]# grep "^GSSAPIAuthentication" /etc/ssh/sshd_config
GSSAPIAuthentication no
[root@centos7-client ~]# grep "^UseDNS" /etc/ssh/sshd_config
UseDNS no
[root@centos7-client ~]# grep "^GSSAPIAuthentication" /etc/ssh/sshd_config
GSSAPIAuthentication no
root@ubuntu1804-client:~# grep "^UseDNS" /etc/ssh/sshd_config
UseDNS no
root@ubuntu1804-client:~# grep "GSSAPIAuthentication" /etc/ssh/sshd_config
GSSAPIAuthentication no
root@ubuntu2004-client:~# grep "^UseDNS" /etc/ssh/sshd_config
UseDNS no
root@ubuntu2004-client:~# grep "GSSAPIAuthentication" /etc/ssh/sshd_config
GSSAPIAuthentication no[root@rocky8-client ~]# ll /etc/yum.repos.d/
total 4
-rw-r--r--. 1 root root 1078 Dec 24 23:24 base.repo
[root@rocky8-client ~]# cat /etc/yum.repos.d/base.repo
[BaseOS]
name=BaseOS
baseurl=https://mirrors.ustc.edu.cn/rocky/$releasever/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial[AppStream]
name=AppStream
baseurl=https://mirrors.ustc.edu.cn/rocky/$releasever/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial[extras]
name=extras
baseurl=https://mirrors.ustc.edu.cn/rocky/$releasever/extras/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
enabled=1[plus]
name=plus
baseurl=https://mirrors.ustc.edu.cn/rocky/$releasever/plus/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial[PowerTools]
name=PowerTools
baseurl=https://mirrors.ustc.edu.cn/rocky/$releasever/PowerTools/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial[epel]
name=epel
baseurl=https://mirrors.ustc.edu.cn/fedora/epel/$releasever/Everything/$basearch/
gpgcheck=1
gpgkey=https://mirrors.ustc.edu.cn/fedora/epel/RPM-GPG-KEY-EPEL-$releasever[root@centos8-client ~]# ll /etc/yum.repos.d/
total 4
-rw-r--r--. 1 root root 1082 Jan  1 18:53 base.repo
[root@centos8-client ~]# cat /etc/yum.repos.d/base.repo
[BaseOS]
name=BaseOS
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[AppStream]
name=AppStream
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[extras]
name=extras
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/extras/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[centosplus]
name=centosplus
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/centosplus/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[PowerTools]
name=PowerTools
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/PowerTools/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[epel]
name=epel
baseurl=https://mirrors.cloud.tencent.com/epel/$releasever/Everything/$basearch/
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/epel/RPM-GPG-KEY-EPEL-$releasever[root@centos7-client ~]# ll /etc/yum.repos.d/
total 4
-rw-r--r--. 1 root root 876 Dec 26 15:03 base.repo
[root@centos7-client ~]# cat /etc/yum.repos.d/base.repo
[base]
name=base
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[extras]
name=extras
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[updates]
name=updates
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[centosplus]
name=centosplus
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever[epel]
name=epel
baseurl=https://mirrors.cloud.tencent.com/epel/$releasever/$basearch/
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/epel/RPM-GPG-KEY-EPEL-$releaseverroot@ubuntu1804-client:~# cat /etc/apt/sources.list
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main restricted universe multiverseroot@ubuntu2004-client:~# cat /etc/apt/sources.list
deb http://mirrors.cloud.tencent.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-updates main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-proposed main restricted universe multiversedeb http://mirrors.cloud.tencent.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-backports main restricted universe multiverse[root@rocky8-client ~]# rpm -q tree
tree-1.7.0-15.el8.x86_64
[root@rocky8-client ~]# rpm -q lrzsz
lrzsz-0.12.20-43.el8.x86_64
[root@rocky8-client ~]# rpm -q vim-enhanced
vim-enhanced-8.0.1763-16.el8.x86_64
[root@centos8-client ~]# rpm -q tree
tree-1.7.0-15.el8.x86_64
[root@centos8-client ~]# rpm -q lrzsz
lrzsz-0.12.20-43.el8.x86_64
[root@centos8-client ~]# rpm -q vim-enhanced
vim-enhanced-8.0.1763-16.el8.x86_64
[root@centos7-client ~]# rpm -q tree
tree-1.6.0-10.el7.x86_64
[root@centos7-client ~]# rpm -q lrzsz
lrzsz-0.12.20-36.el7.x86_64
[root@centos7-client ~]# rpm -q vim-enhanced
vim-enhanced-7.4.629-8.el7_9.x86_64root@ubuntu1804-client:~# dpkg -s tree
Package: tree
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 103
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 1.7.0-5
Depends: libc6 (>= 2.14)
Description: displays an indented directory tree, in colorTree is a recursive directory listing command that produces a depth indentedlisting of files, which is colorized ala dircolors if the LS_COLORS environmentvariable is set and output is to tty.
Original-Maintainer: Florian Ernst <florian@debian.org>
Homepage: http://mama.indstate.edu/users/ice/tree/
root@ubuntu1804-client:~# dpkg -s lrzsz
Package: lrzsz
Status: install ok installed
Priority: optional
Section: comm
Installed-Size: 519
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 0.12.21-10~build0.18.04.1
Depends: libc6 (>= 2.15)
Suggests: minicom
Description: Tools for zmodem/xmodem/ymodem file transferLrzsz is a cosmetically modified zmodem/ymodem/xmodem package builtfrom the public-domain version of Chuck Forsberg's rzsz package..These programs use error correcting protocols ({z,x,y}modem) to send(sz, sx, sb) and receive (rz, rx, rb) files over a dial-in serial portfrom a variety of programs running under various operating systems.
Original-Maintainer: Martin A. Godisch <godisch@debian.org>
Homepage: https://ohse.de/uwe/software/lrzsz.htmlroot@ubuntu2004-client:~# dpkg -s tree
Package: tree
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 112
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 1.8.0-1
Depends: libc6 (>= 2.4)
Description: displays an indented directory tree, in colorTree is a recursive directory listing command that produces a depth indentedlisting of files, which is colorized ala dircolors if the LS_COLORS environmentvariable is set and output is to tty.
Original-Maintainer: Florian Ernst <florian@debian.org>
Homepage: http://mama.indstate.edu/users/ice/tree/
root@ubuntu2004-client:~# dpkg -s lrzsz
Package: lrzsz
Status: install ok installed
Priority: optional
Section: comm
Installed-Size: 519
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 0.12.21-10
Depends: libc6 (>= 2.15)
Suggests: minicom
Description: Tools for zmodem/xmodem/ymodem file transferLrzsz is a cosmetically modified zmodem/ymodem/xmodem package builtfrom the public-domain version of Chuck Forsberg's rzsz package..These programs use error correcting protocols ({z,x,y}modem) to send(sz, sx, sb) and receive (rz, rx, rb) files over a dial-in serial portfrom a variety of programs running under various operating systems.
Original-Maintainer: Martin A. Godisch <godisch@debian.org>
Homepage: https://ohse.de/uwe/software/lrzsz.html

a2.ansible 生产实战案例 -- 系统初始化playbook相关推荐

  1. a3.ansible 生产实战案例 -- 系统初始化roles

    系统初始化roles 源码下载地址:https://github.com/raymond999999/ansible [root@ansible-server ansible]# mkdir -p r ...

  2. a32.ansible 生产实战案例 -- 基于kubeadm安装kubernetes v1.22 -- 集群部署(一)

    源码下载地址:https://github.com/raymond999999/kubernetes-ansible 1.高可用Kubernetes集群规划 角色 机器名 机器配置 ip地址 安装软件 ...

  3. a24.ansible 生产实战案例 -- 基于kubeadm安装kubernetes v1.20 -- 集群部署(一)

    源码下载地址:https://github.com/raymond999999/kubernetes-ansible 1.高可用Kubernetes集群规划 角色 机器名 机器配置 ip地址 安装软件 ...

  4. Ansible roles角色实战案例:httpd nginx memcached mysql

    实战案例 案例1:实现 httpd 角色 #创建角色相关的目录 mkdir -pv /data/ansible/roles/httpd/{tasks,handlers,files}#创建角色相关的文件 ...

  5. python 银行业务系统程序编程写_python实战案例--银行系统

    stay hungry, stay foolish.求知若饥,虚心若愚. 今天和大家分享一个python的实战案例,很多人在学习过程中都希望通过一些案例来试一下,也给自己一点动力.那么下面介绍一下这次 ...

  6. NET Core微服务之路:实战SkyWalking+Exceptionless体验生产下追踪系统

    前言 当一个APM或一个日志中心实际部署在生产环境中时,是有点力不从心的. 比如如下场景分析的问题: 从APM上说,知道某个节点出现异常,或延迟过过高,却不能及时知道日志反馈情况,总不可能去相应的节点 ...

  7. QTYX量化系统实战案例分享|箱体形态选股后蓄势介入之202211

    前言 我觉得非常有必要和大家分享一些QTYX在实战中的应用案例(包括失败的案例),这样能够帮助大家更好地去理解QTYX中的功能设计,也能更好地帮助大家搭建出属于自己的量化交易系统. QTYX量化系统实 ...

  8. 西门子200恒压供水梯形图_实战案例分享‖ 西门子200SMART完成恒压供水系统项目...

    原标题:实战案例分享| 西门子200SMART完成恒压供水系统项目 一,实验指南 1. 实验目的 恒压供水系统,密闭在水池地下,三台主泵加一台辅佐泵.用水量少或没有 用水时,只开辅佐泵.当检测到水压变 ...

  9. Methodot低代码电影票房管理系统实战案例(二):前端低代码搭建系统后台

    本次系统后台实战将使用Methodot应用工厂中的前端低代码组件完成搭建,无需注册域名.购买云服务器.虚拟机等,可在Methodot云端一体化完成开发.交付.访问.运维,3s即可部署至线上 免运维,在 ...

最新文章

  1. Ubuntu14下搭建Web服务器
  2. Python自动化运维——文件与目录差异对比
  3. Android开发之将AndroidX项目改为非androidX(android.v7.support)的方法
  4. 想要学习设计模式,你得先会看类图,一张图读懂UML
  5. php 武汉海关对接_“双11”临近 海口海关全力备战跨境电商监管高峰
  6. Linux 网卡设备驱动程序设计(3)
  7. 网易编程题-操作序列
  8. day31 模块 与包
  9. python读取csv数据出错_使用Pandas在python中读取csv文件时出错
  10. 第三方Android应用商店也有安全问题
  11. stm32刷linux固件,STM32 固件烧录指南
  12. mysql产品分类_MySQL习题1 一对多实例 产品和分类
  13. java 定义别名_Java 别名(Aliasing)
  14. maya 白天室内灯光_Maya课时:白天的灯光构建视频教程_翼狐网
  15. 喝干红葡萄酒的十大好处
  16. Java初学者一定要注意的问题,这些错误你犯过哪些?永远不要停止学习。
  17. asp毕业设计——基于asp+access的web人事管理系统设计与实现(毕业论文+程序源码)——人事管理系统
  18. 各种颜色的英文表述,以及RGB代码
  19. 广和通LTE-A模组FG101FM101系列全线量产,提升Cat 6新体验
  20. linux下实现串口通讯

热门文章

  1. 卡巴斯基报告文件的清理
  2. 知乎高赞:为什么别选计算机专业?(看完我沉默了,为了财富自由还得学计算机专业)...
  3. 迈开电子舞步:从Disco到House
  4. 家用燃气灶的自动保护问题
  5. XML头声明和standalone的解释
  6. Drbd脑裂StandAlone解决办法
  7. 有人朝你扔泥巴-一个小孩
  8. Js先执行点击事件,再执行失去焦点事件的解决方法
  9. note3正在升级android,小米Note3焕发青春,喜提MIUI 10 9.6.1更新,底层升级安卓9.0
  10. 2022-02-09 U3D全栈班 001-Unity基本认识