Skip to content
Snippets Groups Projects
Commit 26f955f1 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

reducing unnecessary changed reports on ansible

Former-commit-id: 8e66601f
parent b3e3982c
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,16 @@
become: true
become_user: root
when: ansible_os_family == 'RedHat'
changed_when: false
- name: "Clear yum pending transactions"
command: yum-complete-transaction --cleanup-only
become: true
become_user: root
register: yumCompleteTransactioncall
when: ansible_os_family == 'RedHat'
changed_when: '"No unfinished transactions left." not in yumCompleteTransactioncall.stdout'
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
......
......@@ -25,6 +25,7 @@
- xorg-x11-xauth
- xorg-x11-proto-devel
- xorg-x11-xkb-utils
- python-jinja2
when: ansible_os_family == 'RedHat'
- name: install deps
......@@ -41,6 +42,8 @@
- 'libglvnd-dev'
- 'xserver-xorg'
- 'vim'
- 'python-jinja2'
- 'python3-jinja2'
state: present
update_cache: yes
become: true
......@@ -213,15 +216,6 @@
# become: true
# become_user: root
# when: template_xorgconf is defined and template_xorgcon
- name: install dependencies for nvidia-xconf-gen
apt:
name:
- python-jinja2
- python3-jinja2
update_cache: yes
state: present
become: true
become_user: root
- name: run nvidia-xconf-gen
script: scripts/nvidia-xconf-gen.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment