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

Jenkins deployment, continuous integration and deployment (CICD)

Catalog: Jenkins deployment process Jenkins continuous integration - publish JAVA website code example Jenkins deployment process Download Jenkins war package wget http://mirrors.jenkins-ci.org/war-stable/2.150.1/jenkins.war Configure java JDK, decompress and install tar xvf jdk1.8.0_131.ta ...

Posted by kaveman50 on Wed, 23 Oct 2019 20:36:47 -0700

Overview of ansible jinja2 template

Catalog Overview of ansible jinja2 template ansible jinja2 template usage Basic grammar jinja2 Template Logic Judgment ansible jinja2 manages nginx ansible jinja2 management keepalived Keeping alived original match Push the keepalived configuration file Prepare the k ...

Posted by defunct on Thu, 03 Oct 2019 09:31:31 -0700

ansible - Configuration of Host List

1. Configuration of ansible host list The following are the source files after the installation of ansible [root@test-1 ~]# cat /etc/ansible/hosts     # This is the default ansible 'hosts' file.     #     # It should live in /etc/ansible/hosts     #     #   - Comments begin with the '#' character     #   - Blank lines are ignored     #   - Gro ...

Posted by brendan2b on Thu, 03 Oct 2019 05:22:08 -0700

Traffic collection between hosts via tcpdump

Since the company is planning to move to the cloud from idc, one of the preparations is to first sort out the call chain between the current hosts.( At the ODF conference, Master Gulley has shown us the way (interested in finding what it says: Visual Exploration of Operations and Maintenance Data), which is more beautiful but more complex. W ...

Posted by freenity on Thu, 29 Aug 2019 09:12:00 -0700