Merge branch 'main' of https://gogs.gtsplab.com:5432/SVIG/pricer
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
- name: Basic system checks
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Check to make sure the package manager is apt
|
||||||
|
fail:
|
||||||
|
msg: "Package manager is not apt"
|
||||||
|
when: "ansible_pkg_mgr != 'apt'"
|
||||||
|
|
||||||
|
- name: Clone pricer repository
|
||||||
|
hosts: target_hosts
|
||||||
|
become: yes
|
||||||
|
tasks:
|
||||||
|
- name: Check out pricer repository
|
||||||
|
git:
|
||||||
|
repo: https://github.com/your-username/pricer.git
|
||||||
|
dest: /path/to/pricer
|
||||||
|
|
||||||
|
- name: Install Python requirements
|
||||||
|
hosts: target_hosts
|
||||||
|
become: yes
|
||||||
|
tasks:
|
||||||
|
- name: Install Python requirements
|
||||||
|
pip:
|
||||||
|
requirements: /Users/sloetjeswong/pricer/requirements.txt
|
||||||
|
|
||||||
|
- name: Install Chromium and Selenium
|
||||||
|
hosts: target_hosts
|
||||||
|
become: yes
|
||||||
|
tasks:
|
||||||
|
- name: Install Chromium
|
||||||
|
apt:
|
||||||
|
name: chromium-browser
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install Selenium
|
||||||
|
pip:
|
||||||
|
name: selenium
|
||||||
|
state: present
|
||||||
Reference in New Issue
Block a user