Demo about Edge Computing in the Retail vertical using Red Hat products
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
735 B

---
- name: Deploy application on test env
hosts: "{{ vm_name }}"
gather_facts: false
tasks:
- name: Install Nodejs
yum:
name: npm
state: present
- name: Install Nodejs
yum:
name: git
state: present
- name: Git Clone / Update Pacman application
ansible.builtin.git:
repo: https://github.com/brusq-RH/pacman
dest: /src/pacman
update: no
- name: Install Pacman application dependicies
npm:
path: /src/pacman
state: present
- name: Copy Pacman systemd file
copy:
src: files/pacman.service
dest: /usr/lib/systemd/system/
- name: Restart application
systemd:
name: pacman
state: restarted
daemon_reload: yes