Skip to content

Commit

Permalink
rip host
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jun 7, 2024
1 parent db8897e commit e1f8314
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 e1f8314

Please sign in to comment.