You can use following methodes to set env variables directly inside hosts
-
lineinfile
tasks: - name: Set env variable lineinfile:
path: {{ user_bashrc_path }}/.bashrc
template: | |
metadata: | |
labels: | |
app: app-name | |
annotations: | |
checksum/config: {{ include (print $.Template.BasePath "/configmap/app-configmap.yaml") . | sha256sum }} |
#!/bin/sh | |
#Check if the git directory already present | |
if [ ! -d "$rtlwifi_new" ]; then | |
git clone https://github.com/lwfinger/rtlwifi_new.git | |
fi | |
cd rtlwifi_new/ | |
git checkout rock.new_btcoex | |
make | |
sudo make install | |
sudo modprobe -rv rtl8723be |