anible-playbook
石兴稳
车轮塑造形体,技术改变生活
展开
-
ansible基础用法5_修改/etc/hosts 文件
ansible 的主机表如下[root@ansible AnsibleInstallRpm]# cat /etc/ansible/hosts---all: hosts: node1: ansible_connection: ssh ansible_host: 10.100.201.161 ansible_ssh_pass: xxx@123 ansible_ssh_user: root http_port: 81 n.原创 2020-09-22 17:44:43 · 3038 阅读 · 0 评论 -
ansible-playbook redis_install.yaml
redis_install.yaml- hosts: all remote_user: root tasks: - name: install redis yum: name=redis state=present - name: enable redis service: name=redis state=started enabled=yes检查语法...原创 2019-03-29 16:55:48 · 335 阅读 · 0 评论 -
ansible-playbook redis_unstall.yaml
cat redis_unstall.yaml- hosts: all remote_user: root tasks: - name: stop redis service: name=redis state=stopped - name: unstall redis yum: name=redis state=absentansible-playboo...原创 2019-03-29 17:01:43 · 165 阅读 · 0 评论 -
ansible sshpass install
all: hosts: ceph01: ansible_connection: ssh ansible_host: 10.100.201.161 ceph02: ansible_connection: ssh ansible_host: 10.100.201.162 ceph03: ansible_c...原创 2019-09-02 18:08:09 · 506 阅读 · 0 评论