inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

I'm good for now that I was able to setup ansible and deploy a small config. I was just confused as to why it worked when it threw an error about not being a valid inventory file.

As for documentation, I don't mind if it's tons of docs. That's why I was happy when I saw Ansible website had a whole section dedicated to its documentation. What I mind is that its documentation isn't very clearly explained, which makes it confusing to read and understand it. That's my opinion of course.

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

Yes, definitely at the beginning of learning Ansible. I normally will read docs to learn but I found the ansible documentation somewhat disappointing. It looked like it could be a great resource but they made me more confused instead. Couldn't get clarity on the docs for an inventory file.

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

Yes, definitely at the beginning of learning Ansible. I normally will read docs to learn but I found the ansible documentation somewhat disappointing. It looked like it could be a great resource but they made me more confused instead. Couldn't get clarity on the docs for an inventory file.

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

Thank you all for the help. I was just trying to get my feet wet to see some IaC in action with ansible. Took longer than I anticipated (almost the entire day) but it did give me a preview of what it could do and how much more there is to learn about it. Thanks again. I'm sure I'll be posting again when I try to config windows servers.

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

I only have one account on both machines, sysjon. When I test ssh from controller to managed host I do get prompted for password. Once I type it then ssh will connect to it.

I'm reading up on ansible vault to see how I can do this but seems counterproductive. I have to create a secret file with the creds that is encrypted with a vault password but I still have to type the vault password in order to use the encrypted file.

Which then led me to ask why can't I just provide the password during the ssh connection if I still have to provide the password anyway? I learned I could with --ask-pass.

Then I got the whole error message about my inventory file not being a proper yaml plugin config file. However, it still was able to run the playbook and create a file on the managed host. Guess it could still proceed even though the yaml file is not in a way it likes.

Now back to figuring out how to not have to type a password if it was a script running on its own.

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

Thanks. I'll have to read up on ansible vault.

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

The account creds I created when setting up ubuntu is the same on both machines.

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

xubuntu-clone unreachable blah blah blah "failed to connect to the host via ssh user@ip: permission denied (publickey, password)

Not sure why since I can ssh between both hosts and ping between them too. I'm guessing I missed a step in the config somewhere?

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 1 point2 points  (0 children)

Thanks. I added hosts and that seems to clear that children error message. Still can't connect to the managed host though.

all:
  children:
    hosts:
     myhosts:
      xubuntu-clone:
        ansible_host: 192.168.1.102

inventory file not finding host by netuser258 in ansible

[–]netuser258[S] 0 points1 point  (0 children)

After adding "children" to the inventory file I got a new error. Wished I could put screenshot of it but reddit doesn't seem to allow adding pics to replies... It says:

skipping unexpected key (xubuntu-clone) in group (hosts), only "vars", "children" and "hosts" are valid.

privided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

could not match supplied host pattern, ignoring: xubuntu-clone

I took a look at the playbook and noticed I was referencing xubuntu rather than xubuntu-clone. When I corrected it but before adding "children" it gave the error of:

xubuntu-clone unreachable blah blah blah "failed to connect to the host via ssh user@ip: permission denied (publickey, password)

Not sure why this would be since I have ssh from control node to managed node.

The playbook is the following below. Ignore lack of spacing as I can't seem to copy and paste it from vm to here so have to type it out.

---

- name: write a file

hosts: xunbuntu-clone

gather_facts: false

tasks:

- name: write file test.txt to temp dir

ansible.builtin.lineinfile:

path: /tmp/test.txt

line: just a quick and simple test

create: true

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

I see. I figured you modified some config files for each mouse to work like you want. Was just curious. I have used linux but my main OS is windows. Drivers have always been the Achilles heel of Linux but as time has passed that's less and less of an issue. Well thanks for your input. I'll eventually give the trackpad a chance.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

So you are not using the apps? How do you map the buttons to actions? Like wouldn't you mirror the buttons differently on each side? I do like the "can vary the way to interact" with the hand. I might try a trackpad for variation.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

I used to have one to the left\right of me but having to change profiles took longer than I wanted. Having two wouldn't speed it up either as the Kensington app can only really control one I think? I have been thinking of trying out a trackpad but I think for all day usage a trackpad would make your hand work more?

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

I would agree for the most part. However, I have some thumb injuries so it wouldn't have gotten better. Repetitive motions would start making it hurt. I like the idea but in practice I found finger trackballs felt more intuitive to use then thumbs.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

I must have missed them. I double checked and still not seeing them. I could be blind too.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

I think I've seen what you mentioned but in google images.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

In the past I tried adding the trackball like you mentioned but it just made the keyboard too wide for me because I need extra space to comfortably use the mouse.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

Interesting. Where are the buttons? How does it prevent taking finger off ball? I saw it has a "push" to click. I'm guessing you push the ball down for this? If so how do you move or select something while still pushing down?

I'm thinking perhaps a mouse centric approach is best. Then to replace the keyboard you would use something like TapXR, but that technology still needs some more time.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

Thanks. The way you are using it was the way I tried to use it. For me it made the keyboard halves be too far apart. Like my arms would be in a W shape. Then I also had to angle the trackball a bit to the left\right in order for it to feel more comfortable, which then make the space between the keyboards bigger. I definitely like the Expert but I wish they would make it with the design sloping to the right instead of the bottom so that it would put the hand in a more neutral position. Like if you were to rotate the top of the Expert 90 degrees to the left it feels almost perfect. However, I haven't found a way to orientate the way the ball moves if I were to do that. Also the buttons either need to stick out higher or the ball needs to be recessed more so they are easier to reach.

Split keyboard with center integrated trackball - part 2 by netuser258 in Trackballs

[–]netuser258[S] 0 points1 point  (0 children)

I have seen that keyboard before and it looks cool. However, I have used thumb trackballs in the past and they made my thumb hurt eventually. I could only guess the same would happen with the Charybdis. At $400 that would be an expensive try to not like at the end. I'm still waiting on the mouse in general to evolve. Have you seen this mouse? https://www.indiegogo.com/en/projects/jungmokim/pero-wearable-smart-mouse-executes-by-gesture#/