Skip to content

Commit

Permalink
Merge pull request #42 from Universite-Gustave-Eiffel/test_playbooks
Browse files Browse the repository at this point in the history
rip host
  • Loading branch information
nicolas-f authored Jun 7, 2024
2 parents 6666673 + e1f8314 commit b3cb68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ansible_openvpn/playbooks/fetch_rpi_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
connection: ssh
tasks:
- name: Fetch hostname
ansible.builtin.command: cat /etc/hosts | grep 127.0.1.1 | awk '{print $2}'
ansible.builtin.shell: cat /etc/hosts | grep 127.0.1.1 | awk '{print $2}'
register: rpi_host
- name: fetch RPI eth0 mac address
ansible.builtin.shell: /usr/sbin/ifconfig eth0 2>/dev/null|awk '/ether/ {print $2}'
Expand Down

0 comments on commit b3cb68a

Please sign in to comment.