Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

Installing WordPress using WP-CLI

The following code snippet will install and set up WordPress so it is up and running:

- debug:  msg: ensure you have installed lamp (or) lemp stack - name: downloading WordPress cli aka wp-cli  get_url:    url: https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar    dest: /usr/local/bin/wp    mode: 0755- name: download latest WordPress locally  command: wp core download  become_user: "{{ new_user_name }}"  args:    chdir: /var/www/html/- name: WordPress site configuration  command: "wp core config --dbname={{ WordPress_database_name }} --dbuser={{ WordPress_database_username }} --dbpass={{ WordPress_database_password }}- name: information for WordPress site command: "wp core install --url={{ WordPress_site_name ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content