Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tak wyglada moja struktura
- ├── group_vars
- │ └── all
- ├── hosts
- ├── roles
- │ ├── django
- │ │ ├── handlers
- │ │ ├── tasks
- │ │ │ └── main.yml
- │ │ └── templates
- │ │ └── settings.j2
- │ ├── gunicorn
- │ │ ├── handlers
- │ │ ├── tasks
- │ │ │ └── main.yml
- │ │ └── templates
- │ │ └── gunicorn_start.j2
- │ └── postgres
- │ ├── handlers
- │ │ └── main.yml
- │ ├── tasks
- │ │ └── main.yml
- │ └── templates
- └── site.yml
- gdzie group_vars/all
- ---
- # Postgres
- dbname: myapp
- dbuser: django
- dbpassword: django1
- gdzie hosts
- [test-srv]
- 192.168.1.233
- [all:children]
- test-srv
- [all:vars]
- ansible_connection=ssh
- ansible_ssh_user=pi
- ansible_ssh_pass=raspberry
- gdzie site.yml
- ---
- - name: Instal Postgresql
- hosts: all
- roles:
- - postgres
- - django
- - gunicorn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement