Skip to content

Commit 60cc568

Browse files
committed
Removed extra chars from the README commands
1 parent aa5f7b5 commit 60cc568

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,33 +56,33 @@ Before running the playbook implementing our modules and roles for IBM MQ:
5656
1. Check if you have an *ssh* key pair in order to access the target machines via Ansible. Go to the `~/.ssh` directory in your machine and look for the `id_rsa` and `id_rsa.pub` files.
5757

5858
```shell
59-
$ cd ~/.ssh
59+
cd ~/.ssh
6060
```
6161

6262
2. If those two files are not in your `ssh` directory, you need to generate `id_rsa` and `id_rsa.pub` with the following command:
6363

6464
```shell
65-
$ ssh-keygen
65+
ssh-keygen
6666
```
6767

6868
3. Once the keys have been generated, these need to be copied to the target machine's user `ssh` directory.
6969

7070
```shell
71-
$ ssh-copy-id -i id_rsa.pub [USER]@[YOUR_TARGET_MACHINE_IP]
71+
ssh-copy-id -i id_rsa.pub [USER]@[YOUR_TARGET_MACHINE_IP]
7272
```
7373

7474
4. To confirm the keys have been copied successfully, connect to your target machine by:
7575

7676
```shell
77-
$ ssh [USER]@[YOUR_TARGET_MACHINE_IP]
77+
ssh [USER]@[YOUR_TARGET_MACHINE_IP]
7878
```
7979
This should connect to your target machine without asking for a password.
8080

8181
5. Go to the `ansible_collections/ibm/ibmmq/` directory.
8282

8383
```shell
84-
$ cd ..
85-
$ cd ansible_collections/ibm/ibmmq/
84+
cd ..
85+
cd ansible_collections/ibm/ibmmq/
8686
```
8787

8888

@@ -109,27 +109,27 @@ The sample playbook [`ibmmq.yml`](ansible_collections/ibm/ibmmq/ibmmq.yml) insta
109109
- On Mac:
110110

111111
```shell
112-
$ export ANSIBLE_LIBRARY=<PATH-TO>/ansible_mq/ansible_collections/ibm/ibmmq/library
112+
export ANSIBLE_LIBRARY=<PATH-TO>/ansible_mq/ansible_collections/ibm/ibmmq/library
113113
```
114114

115115
- On Windows:
116116

117117
```shell
118-
$ set ANSIBLE_LIBRARY=<PATH-TO>/ansible_mq/ansible_collections/ibm/ibmmq/library
118+
set ANSIBLE_LIBRARY=<PATH-TO>/ansible_mq/ansible_collections/ibm/ibmmq/library
119119
```
120120

121121
2. Make sure you update the hosts in `ibmmq.yml` name to `YOUR_TARGET_MACHINES` group from your inventory file.
122122

123123
3. Run the following command to execute the tasks within the playbook:
124124
```shell
125-
$ ansible-playbook ./ibmmq.yml -i inventory.ini -K
125+
ansible-playbook ./ibmmq.yml -i inventory.ini -K
126126
```
127127
- ##### *NOTE* : `-K` will prompt the user to enter the sudo password for [YOUR_USER] on the target machine.
128128

129129
4. The playbook should return the result of `dspmq` with the queue manager created listed. Log into your target machine and check it manually:
130130

131131
```shell
132-
$ dspmq
132+
dspmq
133133
```
134134

135135
# Troubleshooting
@@ -166,11 +166,11 @@ To run the test playbooks first:
166166

167167
1. make sure you are in the right directory
168168
```shell
169-
$ cd tests/playbooks
169+
cd tests/playbooks
170170
```
171171
2. export the modules to your Ansible library
172172
```shell
173-
$ export ANSIBLE_LIBRARY=<PATH-TO>/ansible_mq/ansible_collections/ibm/ibmmq/library
173+
export ANSIBLE_LIBRARY=<PATH-TO>/ansible_mq/ansible_collections/ibm/ibmmq/library
174174
```
175175
- ##### *NOTE* : change `<PATH-TO>` to your local directory path:
176176
3. run all test playbooks with `main.py`

0 commit comments

Comments
 (0)