![](https://img-blog.csdnimg.cn/20190904145259345.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Ansible
文章平均质量分 75
playbooks是 一个不同于使用Ansible命令行执行方式的模式,其功能更强大灵活。简单来说,playbook是一个非常简单的配置管理和多主机部署系统,不同于任何已经存在的模式,可作为一个适合部署复杂应用程序的基础。Playbook可以定制配置.
CIAS
追求极致,提高效率。
展开
-
ansible-tower 发布一个Window任务
【代码】ansible-tower 发布一个Window任务。原创 2023-03-23 13:50:19 · 259 阅读 · 0 评论 -
Red Hat Enterprise Linux 8.2 Install Ansible-Tower
Ansible Tower (以前叫’AWX’)是能够帮助任何IT团队更容易使用Ansible的解决方案。该方案基于web。Tower允许对用户进行权限控制,即使某用户不能传送某SSH凭证,你也可以通过Tower来对该用户共享该凭证。我们可以通过图形化界面来管理Inventory,也可以对各种各样的云资源做同步。Tower可以记录所有job的日志,也可以与LDAP集成,并且拥有强大的可浏览的REST API。Tower也提供了命令行工具,可以与Jenkins轻松集成。Provisioning回.....原创 2022-05-24 18:09:44 · 547 阅读 · 0 评论 -
Ubuntu Server 21.04 Install ansible
前言介绍ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。ansible是基于 paramiko 开发的,并且基于模块化工作,本身没有批量部署的能力。真正具有批量部署的是ansible所运行的模块,ansible只是提供一种框架。ansible不需要在远程主机上安装client/agents,因为它们是基于ssh来和远程主机通讯...原创 2021-12-10 14:39:00 · 1060 阅读 · 0 评论 -
Red Hat Enterprise 8.4 Install ansible
docker版本以及操作系统下载使用说明系统 YUM参考 Red Hat Enterprise 系统下载 Linux 具体配置参考 download包含6,7,8 安装ansilbednf -y install centos-release-ansible-29设置安装源sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-SIG-ansible-29.repo安装ansible ..原创 2021-08-12 12:34:38 · 464 阅读 · 0 评论 -
ansible-playbook Windows Java
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm"...原创 2021-08-06 13:43:56 · 368 阅读 · 0 评论 -
ansible-playbook Windows Mysql Install
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm" ...原创 2021-07-28 15:24:37 · 213 阅读 · 0 评论 -
ansible-playbook Windows SQL Server 2012 express edition installation
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm"...原创 2021-07-28 15:13:02 · 276 阅读 · 0 评论 -
ansible-playbook Windows Chocolatey installation
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm"...原创 2021-07-19 15:47:57 · 236 阅读 · 0 评论 -
ansible-playbook Windows win_robocopy
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm" ...原创 2021-04-29 16:42:05 · 367 阅读 · 0 评论 -
ansible-playbook Windows timezone
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm" ...原创 2021-04-29 11:08:21 · 359 阅读 · 0 评论 -
ansible-playbook Windows software installation
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm"...原创 2021-04-28 16:07:11 · 215 阅读 · 0 评论 -
ansible-playbook Windows Open Remote Desktop
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm" ...原创 2021-04-28 10:40:22 · 206 阅读 · 1 评论 -
ansible-playbook Windows add shares
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm" ...原创 2021-04-27 16:06:31 · 193 阅读 · 0 评论 -
ansible-playbook Windows add firewall
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ansible_ssh_port=5985 端口 ansible_connection="winrm" ...原创 2021-04-27 10:28:18 · 276 阅读 · 0 评论 -
ansible-playbook esxi VMware vCenter license keys
前提条件esxi 安装 vCenter 安装 VM虚拟机创建安装ansibleyum install ansible vim wget net-tools git -y需要满足以下要求python >= 2.6 PyVmomi需安装pyVmomi,它是用于VMware vSphere API的Python SDK,允许您管理ESX、ESXi和vCenter。...原创 2020-04-10 14:29:14 · 492 阅读 · 0 评论 -
ansible-playbook esxi configuration of an ESXi host NTP
前提条件esxi 安装 vCenter 安装 VM虚拟机创建需要满足以下要求python >= 2.6 PyVmomi需安装pyVmomi,它是用于VMware vSphere API的Python SDK,允许您管理ESX、ESXi和vCenter。pip install pyvmomi创建目录mkdir -p /etc/ansible/roles/vmw...原创 2020-04-10 11:14:19 · 412 阅读 · 0 评论 -
ansible-playbook esxi Export the virtual machine as OVF template
需要满足以下要求 python >= 2.6 PyVmomi需安装pyVmomi,它是用于VMware vSphere API的Python SDK,允许您管理ESX、ESXi和vCenter。pip install pyvmomi创建目录pip install pyvmomi参数设置参考Parameter Choices/Def...原创 2020-04-10 10:14:29 · 348 阅读 · 0 评论 -
ansible-playbook esxi Create a New VIrtual Machine
需安装pyVmomi,它是用于VMware vSphere API的Python SDK,允许您管理ESX、ESXi和vCenter。pip install pyvmomi创建目录mkdir -p /etc/ansible/roles/vmware创建虚拟机自动脚本vim /etc/ansible/roles/vmware/Create-virtual-machine-e...原创 2020-04-10 09:28:49 · 455 阅读 · 0 评论 -
ansible-playbook esxi Host template publishing
需安装pyVmomi,它是用于VMware vSphere API的Python SDK,允许您管理ESX、ESXi和vCenter。pip install pyvmomi把安装好虚拟机转换成为模板或者是克隆成模板配置模板名称,然后选择中心和具体esxi主机转换成的模板查看硬盘名称,可以主机定义创建脚本存放目录mkdir -p /etc/ansibl...原创 2020-04-09 17:40:29 · 350 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook redis
安装ansibleyum install ansible vim wget net-tools git -y添加主机vim /etc/ansible/hosts[redis]192.168.3.209 hostname=redis ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass=1234.com...原创 2020-04-03 13:33:08 · 304 阅读 · 0 评论 -
ansible-tower 发布一个Linux 任务
Tower playbook 项目目录位于 /var/lib/awx/projects/所以playbook和role需要在这里创建1, 创建HOST登录凭据点击左侧菜单Credentials,再点击右侧加号1.1NAME:192.168.3.201CREDENTIAL TYPE:Machine用户名:root密码:XXX其他留空,点击保存2....原创 2020-04-02 21:05:29 · 505 阅读 · 1 评论 -
Centos 7.6 Install ansible-playbook Gogs
安装ansibleyum install ansible vim wget net-tools git -y原创 2020-03-26 14:18:32 · 303 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook email
---- hosts: test gather_facts: true vars: hostname: "{{ ansible_hostname }}" tasks: - name: Set timezone to Asia/Shanghai timezone: name: Asia/Shanghai - name: Send ...原创 2020-03-25 08:06:30 · 366 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook Win_shell softwore Windwos
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ...原创 2020-03-22 14:28:57 · 408 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook software installation Windwos
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server...原创 2020-03-21 18:33:55 · 312 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook add & remove Windwos user
前提条件请参考下面,必须要满足前提条件https://ciasm.blog.csdn.net/article/details/104987121ansible windows用户hosts设置参数ansible_ssh_user=ansible Windows Server的用户名 ansible_ssh_pass=password Windows Server的密码 ...原创 2020-03-20 14:06:21 · 279 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook Set up support Windwos
1,Windows设置(1)升级PowerShell版本到4.0【Windows Server 2012的就不需要升级了,Server 2012的PowerShell默认版本就是4.0】1.下载并安装Microsoft .NET Framework 4.5https://download.microsoft.com/download/B/A/4/BA4A7E71-2906-4B2D-A...原创 2020-03-20 12:08:05 · 605 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook install sysbench simple
安装ansibleyum install ansible vim wget net-tools git -y添加主机vim /etc/ansible/hosts[sysbench-install]192.168.3.209 hostname=sysbench ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_p...原创 2020-03-03 10:09:49 · 289 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook install docker simple
安装ansibleyum install ansible vim wget net-tools git -y添加主机vim /etc/ansible/hosts[docker-install]192.168.3.209 hostname=docker ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass=...原创 2020-01-20 12:17:09 · 369 阅读 · 0 评论 -
ansible-playbook ssh 报错解决
报错解决解决方法删除rsa的信息即可shell: vim ~/.ssh/known_hosts删除信息原创 2019-12-27 12:17:42 · 731 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook install mysql simple
安装ansibleyum install ansible vim wget net-tools git -y添加主机vim /etc/ansible/hosts[mysql]192.168.3.209 hostname=nginx ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass=1234.com...原创 2019-12-19 11:43:31 · 494 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook install nginx simple
安装ansibleyum install ansible vim wget net-tools git -y添加主机vim /etc/ansible/hosts[nginx]192.168.3.209 hostname=nginx ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass=1234.com...原创 2019-11-28 16:23:57 · 238 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook install java simple
安装ansibleyum install ansible vim net-tools git -y添加主机vim /etc/ansible/hosts[java]192.168.3.209 hostname=java ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass=1234.comjava下载(...原创 2019-11-28 11:40:03 · 255 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook install rabbitmq simple
rabbitmq下载https://download.csdn.net/download/hanzheng260561728/11996469otp下载http://erlang.org/download/otp_src_21.3.tar.gzansible-playbook_rabbitmq项目打包https://download.csdn.net/downloa...原创 2019-11-22 15:29:05 · 507 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook install Samba simple
安装ansibleyum install ansible vim net-tools git -y配置Sambavim /etc/ansible/roles/software/smb.conf# See smb.conf.example for a more detailed config file or# read the smb.conf manpage.# Ru...原创 2019-09-12 16:51:54 · 369 阅读 · 0 评论 -
Centos 7.6 Install ansible_Tower
Ansible TowerAnsible Tower (以前叫’AWX’)是能够帮助任何IT团队更容易使用Ansible的解决方案。该方案基于web。Tower允许对用户进行权限控制,即使某用户不能传送某SSH凭证,你也可以通过Tower来对该用户共享该凭证。我们可以通过图形化界面来管理Inventory,也可以对各种各样的云资源做同步。Tower可以记录所有job的日志,也可以与LD...原创 2019-08-23 16:36:14 · 1072 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook nginx 1.15.2 standard
安装ansibleyum install ansible vim net-tools git -y配置hostsvim /etc/ansible/hosts[nginx]192.168.3.209上生成秘钥,或者指定他的加密格式,默认就是rsassh-keygen -P ''ssh-keygen -t rsassh-copy-id -i root@192.16...原创 2019-08-29 17:01:08 · 252 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook mysql 5.7.26 standard
安装ansibleyum install ansible vim net-tools git -y配置hostsvim /etc/ansible/hosts[mysql]192.168.3.209上生成秘钥,或者指定他的加密格式,默认就是rsassh-keygen -P ''ssh-keygen -t rsassh-copy-id -i root@192.16...原创 2019-08-29 17:12:29 · 441 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook java standard
安装ansibleyum install ansible vim net-tools git -y配置hostsvim /etc/ansible/hosts[java]192.168.3.209上生成秘钥,或者指定他的加密格式,默认就是rsassh-keygen -P ''ssh-keygen -t rsassh-copy-id -i root@192.168...原创 2019-08-29 17:20:19 · 196 阅读 · 0 评论 -
Centos 7.6 Install ansible-playbook change hostname
安装ansibleyum install ansible vim net-tools git -y添加主机vim /etc/ansible/hosts[all]192.168.3.209 hostname=docker ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass=1234.com192.168....原创 2019-08-30 10:01:41 · 699 阅读 · 0 评论