Giter Site home page Giter Site logo

ansible-script's Introduction

INSTALL ANSIBLE

$ apt-get update
$ apt-get install software-properties-common
$ apt-add-repository --yes --update ppa:ansible/ansible
$ apt-get install ansible

Note:

On older Ubuntu distributions, "software-properties-common" is called "python-software-properties".

ANSIBLE SCRIPTS

PLAYBOOK 1: Setup Basic Wordpress Website with Nginx, MySQL, and PHP

  • Configure target host
    $ ansible-playbook playbooks/wordpress/setup_host.yml
  • Setup Wordpress site
    $ ansible-playbook playbooks/wordpress/setup_wordpress.yml

Notes:

  • default mysql username: Entered db name
  • default mysql password: He*******
  • location /var/www/entered db name

PLAYBOOK 2: Setup FTP User

  • Configure target host
    $ ansible-playbook playbooks/ftp_user/setup_host.yml
  • Setup FTP User
    $ ansible-playbook playbooks/ftp_user.yml

Notes:

  • ftp user's files directory -- /home/user/ftp/files/

PLAYBOOK 3: Migrate site

  • Configure hosts
    $ ansible-playbook playbooks/migrate/host.yml
  • Migrate site to remote server
    $ ansible-playbook playbooks/migrate.yml

Notes:

  • Entered path must be on this format (/var/www/...)
    • e.g. migrate html folder to remote server /var/www/html (no slash at the end)
  • The path entered will be the path used by the remote destination server

PLAYBOOK 4: Setup iRedMail

  • Configure host
    $ ansible-playbook playbooks/iredmail/host.yml
  • Setup iRedMail
    $ ansible-playbook playbooks/iredmail/iredmail.yml

PLAYBOOK 5: Setup Wordpress with iRedMail

  • Configure host
    $ ansible-playbook playbooks/wp_iredmail/host.yml
  • Setup
    $ ansible-playbook playbooks/wp_iredmail/wp_iredmail.yml

ansible-script's People

Contributors

renzivan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.