Ansible-module常用模块 Linux

官方文档传送门: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html#plugins-in-ansible-builtin ping模块 (检查主机连通性) [root@master ansibleProject]# ansible -i ./inven...
myluzh 发布于 

Ansible-inventory主机清单 Linux

创建inventory文件 vim /root/ansibleProject/inventory [node134] #手动在主机清单中指定这台机子的用户名密码 192.168.253.134 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="cisco123" [node133] 192...
myluzh 发布于 

Ansible-基础笔记 Linux

yum安装ansible需要先启动EPEL仓库,具体方法自行百度。 [root@master ~]# yum install ansible --nogpgcheck 安装完成后使用--version 查看默认配置文件 [root@master ~]# ansible --version ansible [core 2.14.2] config file...
myluzh 发布于 

CentOS6~8 配置阿里云yum源与epel源 Linux

CentOS 6 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo 或者 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/re...
myluzh 发布于 

CentOS静态网卡配置 Linux

一般位于 /etc/sysconfig/network-scripts/ifcfg-eth0 或类似的文件中。 静态 TYPE=Ethernet BOOTPROTO=none NAME=eth0 DEVICE=eth0 ONBOOT=yes IPADDR=<你的固定IP地址> NETMASK=<你的子网掩码> GATEWAY=<...
myluzh 发布于 

修复WindowsServer启动就是系统恢复选项 Windows

✔ 修复1. 运行DISM 命令来恢复挂起的更新 在Windows Server 2012 R2上启动时更新被挂起,像“无法完成更新,正在撤消更改,请不要关闭计算机”更新错误提示,您可以通过运行以下命令来恢复挂起的更新以修复Windows2012r2老是重启错误: mkdir c:\scratch(该命令用来创建一个新的目录被称为“Scratch”) dis...
myluzh 发布于 

AD域控-使用CMD和PowerShell修改域用户属性 Windows

dsquery & dsget 在域控本地用dsquery命令查询,按SamAccountName查询(SAMID),SamAccountName是登录名,可以在域用户的属性编辑器找到SamAccountName 查询 SamAccountName 为 test1 的用户 C:\Users\Administrator> dsquery user...
myluzh 发布于 

Office 2019/2021 定制安装 Windows

官网下载的office的ISO进行安装 下载部署工具 https://www.microsoft.com/en-us/download/confirmation.aspx?id=49117 下载解压到指定文件夹得到 4个文件 用记事本编辑configuration-Office2019Enterprise,替换如下(注意:配置文件中SourcePath路径为...
myluzh 发布于 

LVM逻辑卷基础-扩容逻辑卷 Linux

扩容VG卷组 查看/dev/sdb剩余容量(可以看到start起始位置跟end结束位置) [root@localhost /]# parted /dev/sdb (parted) print free 2049MB 53.7GB 51.6GB Free SpaceNumber Start End Size Type...
myluzh 发布于 

LVM逻辑卷基础-创建逻辑卷 Linux

查看磁盘 parted -l 创建分区 parted /dev/sdb 可以定义使用MBR方式还是GPT方式 (parted) mklabel msdos则分区是mbr,若该结果的值为gpt则分区是gpt。 New disk label type? msdos 创建两个分区 (parted) mkpart primary 1025mb 2049mb (par...
myluzh 发布于