|
32 | 32 | # Rest of your playbook tasks... |
33 | 33 | - name: Fetch all rows from SQLite |
34 | 34 | debug: |
35 | | - msg: "{{ lookup('sqlite', table='emails', db_path=database) }}" |
| 35 | + msg: "{{ lookup('ttafsir.ansible_sqlite_utils.sqlite', table='emails', db_path=database) }}" |
36 | 36 |
|
37 | 37 | - name: Fetch single column from SQLite |
38 | 38 | debug: |
39 | | - msg: "{{ lookup('sqlite', table='emails', db_path=database, select='email_id') }}" |
| 39 | + msg: "{{ lookup('ttafsir.ansible_sqlite_utils.sqlite', table='emails', db_path=database, select='email_id') }}" |
40 | 40 |
|
41 | 41 | - name: Fetch two columns from SQLite |
42 | 42 | debug: |
43 | | - msg: "{{ lookup('sqlite', table='emails', db_path=database, select='email_id, subject') }}" |
| 43 | + msg: "{{ lookup('ttafsir.ansible_sqlite_utils.sqlite', table='emails', db_path=database, select='email_id, subject') }}" |
44 | 44 |
|
45 | 45 | - name: Fetch single row from SQLite |
46 | 46 | debug: |
47 | 47 | msg: "{{ |
48 | 48 | lookup( |
49 | | - 'sqlite', |
| 49 | + 'ttafsir.ansible_sqlite_utils.sqlite', |
50 | 50 | table='emails', |
51 | 51 | db_path=database, |
52 | 52 | where='subject = :subject', |
|
57 | 57 | - name: Loop through all rows |
58 | 58 | debug: |
59 | 59 | msg: "{{ item.subject }}" |
60 | | - loop: "{{ lookup('sqlite', table='emails', db_path=database) }}" |
| 60 | + loop: "{{ lookup('ttafsir.ansible_sqlite_utils.sqlite', table='emails', db_path=database) }}" |
61 | 61 |
|
62 | 62 | # Cleanup: Remove the JSON files |
63 | 63 | - name: Cleanup JSON files |
|
0 commit comments