更新时间:2021-06-18 19:17:15
封面
版权信息
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
An Introduction to Ansible
Ansible's story
The term
The software
Ansible versus other tools
Declarative versus imperative
Configuration versus orchestration
Infrastructure as code
Summary
Further reading
Installing and Running Ansible
Technical requirements
Installing Ansible
Installing on macOS
Homebrew
The pip method
Pros and cons
Installing on Linux
Installing on Windows 10 Professional
Launching a virtual machine
An introduction to playbooks
Host inventories
Playbooks
Questions
The Ansible Commands
Inbuilt commands
Ansible
The ansible-config command
The ansible-console command
The ansible-doc command
The ansible-inventory command
Ansible Vault
Third-party commands
The ansible-inventory-grapher command
Ansible Run Analysis
Deploying a LAMP Stack
Playbook structure
LAMP stack
Common
Updating packages
Installing common packages
Configuring NTP
Creating a user
Running the role
Apache
Installing Apache
Configuring Apache
Configuring SELinux
Copying an HTML file
MariaDB
Installing MariaDB
Configuring MariaDB
Importing a sample database
PHP
Installing PHP
The phpinfo file
Adminer
Overriding variables
Deploying WordPress
Preinstallation tasks
The stack-install command
Enabling the repositories
Installing the packages
The stack-config role
WordPress system user
NGINX configuration
PHP and PHP-FPM configuration
Starting NGINX and PHP-FPM