Started snapd.service and installed chromium
This commit is contained in:
+18
-14
@@ -132,14 +132,23 @@
|
|||||||
pip:
|
pip:
|
||||||
name: requests
|
name: requests
|
||||||
state: present
|
state: present
|
||||||
- name: Start snapd and udev
|
- name: Install snapd package
|
||||||
docker_container:
|
apt:
|
||||||
name: loving_benz
|
name: snapd
|
||||||
command: systemctl start snapd udev
|
state: present
|
||||||
|
- name: Start udev
|
||||||
|
systemd:
|
||||||
|
name: udev
|
||||||
|
state: started
|
||||||
|
- name: Start snapd
|
||||||
|
systemd:
|
||||||
|
name: snapd.service
|
||||||
|
# Verify the exact name of the systemd service for snapd using `systemctl list-unit-files | grep snapd` on the host
|
||||||
|
state: started
|
||||||
- name: Install chromium
|
- name: Install chromium
|
||||||
docker_container:
|
snap:
|
||||||
name: loving_benz
|
name: chromium
|
||||||
command: snap install chromium
|
state: present
|
||||||
|
|
||||||
- name: Install Chromium and Chromedriver
|
- name: Install Chromium and Chromedriver
|
||||||
hosts: docker_container
|
hosts: docker_container
|
||||||
@@ -156,12 +165,7 @@
|
|||||||
|
|
||||||
- name: Run latest version of scraper
|
- name: Run latest version of scraper
|
||||||
hosts: docker_container
|
hosts: docker_container
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
# TODO use the ansible variable to get the home directory
|
|
||||||
- name: Clone pricer repository
|
|
||||||
git:
|
|
||||||
repo: https://gogs.gtsplab.com:5432/SVIG/pricer.git
|
|
||||||
dest: /root/pricer
|
|
||||||
version: master
|
|
||||||
- name: Run scraper
|
- name: Run scraper
|
||||||
command: python /root/fp_merge.py
|
command: python3 /opt/pricer/fp_merge.py
|
||||||
|
|||||||
Reference in New Issue
Block a user