diff --git a/config/automatrop/.gitignore b/config/automatrop/.gitignore new file mode 100644 index 0000000..801d1f7 --- /dev/null +++ b/config/automatrop/.gitignore @@ -0,0 +1 @@ +self_hostname diff --git a/config/automatrop/host_vars/gho.geoffrey.frogeye.fr b/config/automatrop/host_vars/gho.geoffrey.frogeye.fr new file mode 100644 index 0000000..3aebfe0 --- /dev/null +++ b/config/automatrop/host_vars/gho.geoffrey.frogeye.fr @@ -0,0 +1,12 @@ +root_access: no +display_server: "x11" +dev_stuffs: + - shell + - network + - ansible + - python +extensions: + - gh +x11_screens: + - HDMI-1 + - HDMI-2 diff --git a/config/automatrop/hosts b/config/automatrop/hosts index 724017c..bc23e54 100644 --- a/config/automatrop/hosts +++ b/config/automatrop/hosts @@ -1,3 +1,4 @@ curacao.geoffrey.frogeye.fr # triffle.geoffrey.frogeye.fr pindakaas.geoffrey.frogeye.fr +gho.geoffrey.frogeye.fr ansible_host=localhost ansible_port=2222 diff --git a/config/scripts/automatrop b/config/scripts/automatrop index 2482dfb..d463b74 100755 --- a/config/scripts/automatrop +++ b/config/scripts/automatrop @@ -1,4 +1,10 @@ #!/usr/bin/env bash cd ~/.dotfiles/config/automatrop -ansible-playbook --diff playbooks/default.yml --limit $HOSTNAME --connection local "$@" +if [ -f ~/.config/automatrop/self_name ] +then + hostname=$(cat ~/.config/automatrop/self_name) +else + hostname="$HOSTNAME" +fi +ansible-playbook --diff playbooks/default.yml --limit $hostname --connection local "$@"