Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

lakiboy/ansible-roles

Repository files navigation

Ansible roles

Basic Ansible Ubuntu LEMP roles for Symfony application.

Usage

site.yml:

---
- hosts: webservers
  remote_user: root

  pre_tasks:
    - name: Setting hostname
      hostname: "name={{ hostname }}"

  roles:
    - devmachine.users
    - devmachine.mariadb
    - devmachine.php
    - devmachine.nginx
    - devmachine.devtools

hosts:

[webservers]
app.com hostname=app

host_vars/app.com.yml:

---
nginx_servers:
  - name:   app
    host:   www.app.com
    path:   /var/www/app
    target: /prod/current/web
    owner:  deploy
    group:  deploy
    aliases:
      - app.com

mariadb_databases:
  - app

mariadb_users:
  - name: app
    priv: "*.*:ALL"
    pass: app

devtools_github_user_tokens:
  - user:  deploy
    token: %token%

Running playbook:

$ ansible-playbook -i hosts site.yml

About

Basic Ansible LEMP roles for Symfony application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages