Mercurial > code > home > repos > infra
diff home.py @ 289:65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
author | drewp@bigasterisk.com |
---|---|
date | Sun, 21 Apr 2024 17:07:23 -0700 |
parents | 3af02e24eaf9 |
children | 11d3bcedb9f0 |
line wrap: on
line diff
--- a/home.py Sun Apr 21 17:01:13 2024 -0700 +++ b/home.py Sun Apr 21 17:07:23 2024 -0700 @@ -1,12 +1,7 @@ from pyinfra import host from pyinfra.operations import files, server -if host.name in [ - 'dash', - 'slash', - 'bang', - 'ditto', - ]: +if host.data.get('drewp_home'): # maybe bring sync.py in here too server.shell(commands=['chsh -s /bin/zsh drewp'])