码迷,mamicode.com
首页 >  
搜索关键字:ansible 常用模块    ( 3327个结果
SaaS技术栈有多复杂?
【特别声明:本文基于Tools and Services I Use to Run My SaaS进行修改。】 软件SaaS化由于需要考量架构的各个方面,所以需要的技术栈非常全面。 以一个客户管理SaaS应用为例,可能涉及的技术栈包括: 开发 开发就是把系统做出来的意思。开发涉及编码、项目管理、测试 ...
分类:其他好文   时间:2020-12-11 12:06:48    阅读次数:4
ansible playbook 安装docker
1.新增host配置到/etc/ansible/hosts文件中 [docker] 192.168.43.95 2.配置无密码登录 # 配置ssh,默认rsa加密,保存目录(公钥)~/.ssh/id_rsa.pub ssh-keygen -t rsa # 配置无密码登陆,这里需要分别4次发送至4台服 ...
分类:其他好文   时间:2020-12-09 12:17:15    阅读次数:4
ansible部署jdk
[root@node1 tasks]# cat main.yml name: 拷贝JKD到目标服务器 unarchive: src={{ jdk_pkg }} dest={{ jdk_dir }} mode=755 name: 添加环境变量 blockinfile: dest: /etc/profi ...
分类:其他好文   时间:2020-12-09 12:12:06    阅读次数:6
# ad-hoc篇
##1、--list-hosts # 查看所有配置主机 ansible all --list-hosts #查看tt主机组主机 ansible tt --list-hosts ##2、shell模块 语法: ansible [主机组] -m shell -a '[参数]' 注:复杂命令会有出错得可能 ...
分类:其他好文   时间:2020-12-04 11:29:42    阅读次数:5
批量抓包
-hosts:allvars:cap_file:packet_capture_{{ansible_hostname}}.pcaptasks:-name:starttcpdump#command:/usr/sbin/tcpdump-nnviany‘port80‘-s0-B65535-C50M-W100-w/data/tmp/{{cap_file}}command:/usr/sbin/tcpdump-
分类:其他好文   时间:2020-12-02 12:46:20    阅读次数:26
Ansible 常用的模块
接下来介绍一些后面章节中会用到的模块,也是很常用的模块。@调试和测试类的模块。。ping:ping一下你的远程主机,如果可以通过Ansible连接成功,那么返回pong。?debug:用于调试的模块,只是简单打印些消息,有点像Linux的echo命令。@文件类的模块。?copy:从本地复制文件到远程节点。。template:从本地复制文件到远程节点,并进行变量的替换。?file:设置文件属性。C)
分类:其他好文   时间:2020-12-02 12:01:25    阅读次数:2
ansible自动化安装及部署httpd
实验环境:(开始实验之前,请保证防火墙关闭,selinux关闭,时间同步)ansible:192.168.2.7web1:192.168.2.7web2:192.168.2.17OS:centos7OS:centos7OS:centos7实现功能:(自动化部署两台各自主机命名的httpd服务器)1、使用ansible的playbook实现自动化安装httpd2、建立httpd服务器,要求提供各自基
分类:Web程序   时间:2020-11-26 14:48:24    阅读次数:9
ansible自动化安装及部署httpd
实验环境:(开始实验之前,请保证防火墙关闭,selinux关闭,时间同步)ansible:192.168.2.7web1:192.168.2.7web2:192.168.2.17OS:centos7OS:centos7OS:centos7实现功能:(自动化部署两台各自主机命名的httpd服务器)1、使用ansible的playbook实现自动化安装httpd2、建立httpd服务器,要求提供各自基
分类:Web程序   时间:2020-11-26 14:48:12    阅读次数:11
NO.A.0006——zabbix-server邮件告警/nginx字段监控
一、批量在服务端向client端发布命令://在zabbix服务端批量向client发送命令查看agent的进程:[root@localhost~]#ansiblezabbix-mshell-a"ps-ef|grepzabbix_agent"[root@localhost~]#ansiblezabbix-mshell-a"/etc/init.d/zabbix_agentdstart"[root@l
分类:其他好文   时间:2020-11-24 12:29:23    阅读次数:6
Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found
Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found 1. 检查ansible服务器的Python: # ls /usr/bin/python 没有则安装。 2. 检查节点服务器的Python: 没有python,路径下也 ...
分类:编程语言   时间:2020-11-21 12:10:11    阅读次数:6
3327条   上一页 1 ... 3 4 5 6 7 ... 333 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!