12345678910111213141516171819202122232425262728293031323334353637 |
- ---
- - hosts: all
- gather_facts: yes
- vars_files:
- - vars/vault.yml
- - vars/main.yml
- pre_tasks:
- - name: Hardware specs
- debug:
- msg: "CPU: {{ ansible_processor }} RAM: {{ ansible_memory_mb.real.total }}"
- - name: Update apt cache if needed.
- apt:
- update_cache: yes
- cache_valid_time: 3600
- upgrade: yes
- force_apt_get: yes
- become: yes
- - name: get the apt package facts
- package_facts:
- manager: "auto"
- - name: Install the package "sudo"
- apt:
- name: sudo
- state: present
- become: yes
- roles:
- - { role: nginx}
- - { role: node}
- - { role: postgres}
- - { role: jsstats}
|