摘要: 1、touch一个crontab文件方便进行后续的追加及操作 ansible host -m file -a "path=/var/spool/cron/root state=touch" 2、批量追加定时任务使用ntpdate同步时间 ansible host -m blockinfile -a 阅读全文
posted @ 2021-12-07 16:24 白小纯123 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 剧本内容 - hosts: allgather_facts: falsetasks:- name: Change passworduser: name={{ name1 }} password={{ chpass | password_hash('sha512') }} 阅读全文
posted @ 2021-12-07 16:07 白小纯123 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 方法一 1、创建项目打包目录并关联git mkdir -p /data/ycj_official/test/source_code/official git init git remove add origin ssh://git@10.0.0.249:7989/frontend/web-code- 阅读全文
posted @ 2021-12-07 16:06 白小纯123 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 一、下载布置jump依赖的工具及安装包 jump使用外置mysql存储数据信息,要求版本在5.7以上。本次采用二进制安装mysql 1.1、创建mysql所需目录和mysql用户并禁止mysql登录系统 useradd mysql -s /sbin/nologin mkdir /data/mysql 阅读全文
posted @ 2021-12-07 16:05 白小纯123 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 目录说明: 包目录:/usr/local/src 安装目录: /usr/local/nginx 日志目录:/data/wwwlogs/nginx/ 安装步骤: 1、创建用户 groupadd www useradd -r -g www www -s /sbin/nologin 2、导入安装包 cd 阅读全文
posted @ 2021-12-07 16:04 白小纯123 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 一、安装启动jenkins 1、sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate 2、rpm --import htt 阅读全文
posted @ 2021-12-07 16:03 白小纯123 阅读(61) 评论(0) 推荐(0) 编辑