Skip to content

Commit

Permalink
chore(ansible): add ccache to path variable
Browse files Browse the repository at this point in the history
Signed-off-by: Mehmet Emin BAŞOĞLU <[email protected]>
  • Loading branch information
mebasoglu committed Mar 8, 2024
1 parent 5519784 commit c80072b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/roles/build_tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ sudo apt-get update

# Install ccache
sudo apt-get install -y ccache

# Add ccache to PATH
echo 'export PATH="/usr/lib/ccache/:$PATH"' >> ~/.bashrc
```
8 changes: 8 additions & 0 deletions ansible/roles/build_tools/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@
name: ccache
state: latest
update_cache: true

- name: Ensure ccache is added to PATH
ansible.builtin.lineinfile:
dest: ~/.bashrc
line: export PATH="/usr/lib/ccache/:$PATH"
state: present
create: true
mode: "0644"

0 comments on commit c80072b

Please sign in to comment.