Now that we have our custom shell profile, making sure ccache is used is way simpler. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- guests/tasks/users.yml | 18 ------------------ guests/templates/bashrc | 2 ++ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/guests/tasks/users.yml b/guests/tasks/users.yml index 8e59fa9..e691b32 100644 --- a/guests/tasks/users.yml +++ b/guests/tasks/users.yml @@ -65,24 +65,6 @@ owner: '{{ flavor }}' group: '{{ flavor }}' -- name: '{{ flavor }}: Enable ccache' - lineinfile: - path: /home/{{ flavor }}/.profile - line: 'which ccache >/dev/null 2>&1 && export CC="ccache cc"' - state: present - owner: '{{ flavor }}' - group: '{{ flavor }}' - create: yes - -- name: '{{ flavor }}: Enable ccache' - lineinfile: - path: /home/{{ flavor }}/.bashrc - line: 'which ccache >/dev/null 2>&1 && export CC="ccache cc"' - state: present - owner: '{{ flavor }}' - group: '{{ flavor }}' - create: yes - - name: '{{ flavor }}: Create shell profile' template: src: templates/{{ item }} diff --git a/guests/templates/bashrc b/guests/templates/bashrc index 6640da6..51d0e64 100644 --- a/guests/templates/bashrc +++ b/guests/templates/bashrc @@ -1 +1,3 @@ export PS1="[\u@\h \w]\$ " + +which ccache >/dev/null 2>&1 && export CC="ccache cc" -- 2.14.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list