Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Recurring Error #294

Open
2 tasks
bennetdumashie opened this issue Jun 6, 2024 · 1 comment
Open
2 tasks

Recurring Error #294

bennetdumashie opened this issue Jun 6, 2024 · 1 comment
Assignees

Comments

@bennetdumashie
Copy link

  • I've read the FAQ and my problem isn't described there.
  • I've also searched through the existing issues, and my problem hasn't been brought up

Describe the issue
I Keep getting this error
TASK [system : Check if the Ansible playbook is copied to the new user directory] *******************************************************************************************************************************
ok: [localhost]

TASK [system : Add the direnv hook to root`s bashrc] ************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => changed=false
msg: Path /home/root/.bashrc does not exist !
rc: 257

PLAY RECAP ******************************************************************************************************************************************************************************************************
localhost : ok=17 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

root@racknerd-fbb6cc:~#
after i enter y to run paybook. I have installed both ubuntu 22.04 and 20.04 but they all give me the same error.

Logs (if applicable)
custom.yml already exists. Running the playbook...

If you want to change something (e.g. username, domain name, etc.)
Please edit custom.yml or secret.yml manually, and then re-run this script

[DEPRECATION WARNING]: [defaults]collections_paths option, does not fit var naming standard, use the singular form collections_path instead. This feature will be removed from ansible-core in version 2.19.
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
Vault password:

PLAY [Install and configure ansible-easy-vpn] *******************************************************************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Set the AWS and Letsencrypt staging facts] ****************************************************************************************************************************************************************
ok: [localhost]

TASK [system : Update the packages and configure auto-updates] **************************************************************************************************************************************************
included: /root/ansible-easy-vpn/roles/system/tasks/setup.yml for localhost

TASK [system : Update and upgrade apt packages] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [system : Install unattended upgrades package] *************************************************************************************************************************************************************
ok: [localhost]

TASK [system : Copy unattended-upgrades configuration files in place] *******************************************************************************************************************************************
ok: [localhost] => (item=10periodic)
ok: [localhost] => (item=50unattended-upgrades)

TASK [system : Configure the firewall] **************************************************************************************************************************************************************************
included: /root/ansible-easy-vpn/roles/system/tasks/firewall.yml for localhost

TASK [system : Template the iptables rules] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [system : Check the location of iptables-restore] **********************************************************************************************************************************************************
ok: [localhost]

TASK [system : Template the iptables systemd service] ***********************************************************************************************************************************************************
ok: [localhost]

TASK [system : Enable and start the iptables service] ***********************************************************************************************************************************************************
changed: [localhost]

TASK [system : Configure the user account] **********************************************************************************************************************************************************************
included: /root/ansible-easy-vpn/roles/system/tasks/user.yml for localhost

TASK [system : Ensure the root group exists] ********************************************************************************************************************************************************************
ok: [localhost]

TASK [system : Allow sudo group to have passwordless sudo] ******************************************************************************************************************************************************
ok: [localhost]

TASK [system : Create a login user] *****************************************************************************************************************************************************************************
ok: [localhost]

TASK [system : Ensure group "root" exists] **********************************************************************************************************************************************************************
ok: [localhost]

TASK [system : Check if the Ansible playbook is copied to the new user directory] *******************************************************************************************************************************
ok: [localhost]

TASK [system : Add the direnv hook to root`s bashrc] ************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => changed=false
msg: Path /home/root/.bashrc does not exist !
rc: 257

PLAY RECAP ******************************************************************************************************************************************************************************************************
localhost : ok=17 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

root@racknerd-fbb6cc:~#
log


**Environment:**
- Client OS: [e.g. Windows 11]
- VPS OS [e.g. Ubuntu 22.04,
- VPS Provider [e.g.racknerd]
@VH-Tech
Copy link

VH-Tech commented Nov 6, 2024

Hey, I was running into the same error. I think the problem is that you are naming your user as 'root'. Try changing that to something else and it should work fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants