Skip to content

Commit

Permalink
add fqdn record to /etc/hosts file (#16)
Browse files Browse the repository at this point in the history
* add fqdn record to /etc/hosts file

* update python

Co-authored-by: Ruslan Bondarau <[email protected]>
  • Loading branch information
bondarau and RuslanBondarau authored Jun 10, 2020
1 parent 1b83e38 commit 86b4155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sudo: required

language: python
python:
- "2.7"
- "3.7"

services:
- docker
Expand All @@ -13,8 +13,8 @@ before_install:
- git clone https://github.com/lean-delivery/ansible-lint-rules.git ~/ansible-lint-rules

install:
- pip install --upgrade ansible==2.7.* docker-py molecule==2.20 pyOpenSSL PyYAML pytest
- pip install git+https://github.com/ansible/ansible-lint.git
- pip3 install --upgrade ansible==2.9.* docker molecule==2.22 pyOpenSSL PyYAML pytest
- pip3 install git+https://github.com/ansible/ansible-lint.git@v4.3.0a0
- ansible --version
- ansible-lint --version

Expand Down
2 changes: 1 addition & 1 deletion tasks/yhealthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- name: Add localaddr record to hosts
blockinfile:
path: /etc/hosts
block: '{{ ansible_default_ipv4.address }} localaddr'
block: '{{ ansible_default_ipv4.address }} localaddr {{ ansible_fqdn }}'
marker: '# {mark} ANSIBLE MANAGED BLOCK'
when: set_localaddr
become: true
Expand Down

0 comments on commit 86b4155

Please sign in to comment.