Ansible automatic operation and maintenance learning III: yaml syntax and playbook writing

Note: part of the code of the article case will be misaligned. Please pay attention to the format alignment when using!! Chapter 3 yaml syntax and playbook writing Ansible's playbook adopts yaml syntax, so before learning ansible playbook, it is necessary to understand and master the grammar format of yaml. Only by practicing and mastering the ...

Posted by JDcrack on Fri, 28 Feb 2020 02:22:44 -0800

Ansible? Quick start

Ansible Article directory Ansible 1 Introduction to ansible 2 environment construction 3 Ansible installation 4 Ansible Inventory file 4.1 password based connection 4.2 connection based on secret key 4.3 use of host group 4.4 temporarily designated inventory 4.5 Inventory built in parameters 5 An ...

Posted by fredriksk on Mon, 17 Feb 2020 21:53:56 -0800

Ansible Role Management-Roles (Example Demo!!!)

An overview of Roles Roles can automatically load variable files, task s, handlers, and so on, depending on the hierarchy. Simply put, Roles is about including variables, files, tasks, modules, and processors in separate directories and easily. Roles is typically used in scenarios where services are built on hosts, but it can also be used in s ...

Posted by hemoglobina on Tue, 04 Feb 2020 15:13:50 -0800

Ansible script management (example explanation!!!)

inventory host list The default host list of ansible is the / etc/ansible/hosts file. The host list can be set manually or generated dynamically through Dynamic Inventory. Generally, the host name uses FQDN vim /etc/ansible/hosts [webserver] #Square bracket set group name www1.example.org #Define the monit ...

Posted by Arez on Mon, 03 Feb 2020 09:08:23 -0800

Ansible installation and module management (the most complete operation, can follow

1, Ansible installation Environmental preparation Management end: CentOS 7-2 192.168.18.147Managed end 1: CentOS 7-3 192.168.18.128Managed end 2: CentOS 7-4 192.168.18.148 Management side: [root@localhost ~]# systemctl stop firewalld.service [root@localhost ~]# setenforce 0 [root@localhost ~]# yum install epel-release -y [root@localhost ~]# ...

Posted by santhosh_89 on Mon, 03 Feb 2020 07:34:46 -0800

Jenkins+Ansible installation and deployment

1, Environmental description Operating system: CentOS 7.5 x86 ʄ JAVA version: jdk-8u181 Jenkins version: jenkins-2.134 Ansible version: ansible-2.3.3.0 2, Preparation before configuration # systemctl disable firewalld.service # systemctl stop firewalld.service # sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/ ...

Posted by gnawz on Fri, 31 Jan 2020 09:37:23 -0800

Role application of Ansible automatic operation and maintenance playbook (deploying apache and zabbix)

I. Preface About roles Roles can be automatically installed in variable files, tasks, handlers, etc. according to the hierarchical structure. To use roles, you only need to use the include instruction in the playbook. In short, roles is a mechanism that can easily include variables, files, tasks, t ...

Posted by qistoph on Sun, 19 Jan 2020 03:24:48 -0800

6. Playbook cycle, conditional judgment in playbook, handlers in Playbook

1. playbook cycle #vi/etc/ansible/while.yml //Add the following --- - hosts: yw02   user: root   tasks:     - name: change mode for files       file: path=/tmp/{{ item }} mode=600       with_items:         - 1.txt         - 2.txt         - 3.txt Description: A file module is used here, followed by a path, if it is a file, you can write/tmp/1. ...

Posted by genius on Fri, 10 Jan 2020 09:13:32 -0800

Ansible playbook batch management cluster basic configuration

Ansiable bulk configuration management through playbook playbook is composed of one or more modules. It uses many different modules to accomplish one thing. Install a service, configure, and start. 1. Find someone to shoot. 2. General tasks. 3. How to do it. Install httpd Service - > Playbook 1. i ...

Posted by ramrod737 on Thu, 02 Jan 2020 04:35:26 -0800

CentOS7.6 enable Ceph nautilus's dashboard failure handling

[TOC] 1. Environmental description Software Edition operating system CentOS7.6 ceph nautilus, v14.2.4 The nautilus version of CEPH deploy is installed the same as the luminous version. Please refer to my previous article:https://blog.51cto.com/ygqygq2/2161917 2. Failed to enable ceph dashboard There is an error when the mgr module tu ...

Posted by dougp23 on Fri, 15 Nov 2019 09:49:29 -0800