This commit is contained in:
2023-06-07 16:24:41 -04:00
+38
View File
@@ -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