X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=ansible%2Fconfig_new.yml;h=f3bd3f565a1d093e007374864b02e9be2bf2dafd;hb=1e8e425dc22b77823519753a4df977964ae472ec;hp=47ffbd3cb38e09328035d202cddab75007b7d577;hpb=2b50059ff7d887f00a9a1f70acef9fb300624203;p=config diff --git a/ansible/config_new.yml b/ansible/config_new.yml index 47ffbd3..f3bd3f5 100644 --- a/ansible/config_new.yml +++ b/ansible/config_new.yml @@ -25,10 +25,18 @@ - name: APT - dist-upgrade apt: upgrade=dist + # Ensure packages needed for disk encryption on startup (how does this work?) + - name: ensure power management tools are installed + apt: name={{item}} state=present + with_lines: + - cat ~/config/ansible/files/apt-mark_new/minimal/disk_encryption | sed -e 's/ *#.*$//' + # Ensure power management. - name: ensure power management tools are installed apt: name={{item}} state=present - with_lines: cat ~/config/ansible/files/apt-mark_new/minimal/power_management | sed -e 's/ *#.*$//' + with_lines: + - cat ~/config/ansible/files/apt-mark_new/minimal/power_management | sed -e 's/ *#.*$//' + - cat ~/config/ansible/files/apt-mark_new/X200s/power_management | sed -e 's/ *#.*$//' - name: start TLP shell: tlp start @@ -101,7 +109,9 @@ # Ensure wifi. - name: ensure wifi configuration apt: name={{item}} state=present - with_lines: cat ~/config/ansible/files/apt-mark_new/minimal/wifi | sed -e 's/ *#.*$//' + with_lines: + - cat ~/config/ansible/files/apt-mark_new/minimal/wifi | sed -e 's/ *#.*$//' + - cat ~/config/ansible/files/apt-mark_new/X200s/wifi | sed -e 's/ *#.*$//' #- name: ensure wicd # apt: name={{item}} state=present # with_lines: cat ~/config/ansible/files/apt-mark_new/W530/wicd | sed -e 's/ *#.*$//'