geerlingguy / geerlingguy/ansible-for-devops

Tasks in "Environment Variables" chapter (page 116) do not work for ubuntu2004

Open
#331 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.9k
Forks
3.8k
PR merge metrics
No merged PRs in 30d

Description

Fails with:
```
TASK [Add an environment variable to the remote user's shell.] *****************
fatal: [ubuntu2004]: FAILED! => changed=false
msg: Destination /root/.bash_profile does not exist !
rc: 257
```
Seems to work OK with `geerlingguy/centos7` and `geerlingguy/centos8` images. But since it's not mentioned in that chapter that CentOS should be used and the previous exercise was for Solr in **Ubuntu**, my first assumption was to try with Ubuntu. Perhaps it's worth either making the play more universal or adding a note that this example works with CentOS

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.