Ansible playbook Vault encryption

Ansible playbook Vault encryption details and use cases   Host Planning   Add user account Explain: 1. Login accounts used by operations and maintenance personnel; 2. All businesses are placed under / app / in the "home directory of yun users" to avoid the disorder of business data; 3. This user is also used by ansible because almo ...

Posted by dopey on Tue, 28 Apr 2020 09:56:43 -0700

Ansible16: Playbook advanced usage

Catalog Local execution Task delegation Task pause Scroll execution Only once Setting environment variables interactive prompt Local execution If you want to run a specific task locally on the control host, you can use the local action statement. Suppose that the remote host we need to configure has jus ...

Posted by roonnyy on Mon, 20 Apr 2020 00:57:21 -0700

[Jenkins+Ansible+Gitlab Automated Deployment three swordsmen] learning notes - Chapter 5 5 5-1~5-5 Freestyle Job practice

Chapter 5: 5-1~5-5 Freestyle Job 1, Three swordsmen Environment Introduction (Jenkins, Ansible, Gitlab) 2, Jenkins, Ansible, Gitlab 2.1. Verify the ansible environment and ssh password free login under Jenkisns 2.2. Write nginx? Playbooks file 2.2.1. Enter nginx? Playbooks folder to write deploy.yml file 2.2.2 create dev and p ...

Posted by kingpin393 on Sun, 12 Apr 2020 19:17:07 -0700

redis master-slave configuration (one master-many slave)

Introduction of Master and Subordinate redis installation 1. Master-Subordinate-Usage Like MySQL, redis support master-slave synchronization, as well as a master-slave and multilevel slave structure. The primary-slave architecture is designed for purely redundant backups, and for improved read perf ...

Posted by SpaceLincoln on Sat, 28 Mar 2020 10:36:48 -0700

Ansible automatic operation and maintenance learning 5: detailed explanation and optimization of ansible configuration file

1, Details of common parametersThis paper is about https://blog.51cto.com/8355320/2471354 The parameter configuration of is extended.The default configuration file of ansible is / etc/ansible/ansible.cfg. Parameters of ansible can be adjusted in the configuration file, including concurrent thread, user, module path, configuration optimization, ...

Posted by hopelessX on Fri, 20 Mar 2020 04:29:59 -0700

Ansible-Secret Login and Host List Inventory

Ansible's specified user and password login, secret-free login, specified ssh port, and host list Inventory configuration It is not necessary to modify the ansible configuration in practice, or it is only necessary to modify the ansible configuration. Add user account Explain: 1. Login accounts used by operations and maintenance personnel; 2 ...

Posted by artist-ink on Sun, 15 Mar 2020 09:06:45 -0700

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