February 2018
Intermediate to advanced
200 pages
5h 51m
English
The application deployment can be done using Ansible. If we are going to deploy the application using SQLite then the following tasks for the phonebook role are good enough:
---- name: install epel repository package: name: epel-release state: present- name: install dependencies package: name: "{{ item }}" state: present with_items: - git - python-pip - gcc - python-devel- name: install python libraries pip: name: "{{ item }}" state: present with_items: - flask - flask-sqlalchemy - flask-migrate - uwsgi- name: get the application code git: repo: git@github.com:ansible-cookbook/phonebook-sqlite.git dest: /opt/phone-book- name: upload systemd unit file copy: src: phone-book.service dest: /etc/systemd/system/phone-book.service ...Read now
Unlock full access